Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
uphp:blockly_home_page_hook [2019/07/22 10:35]
admin
uphp:blockly_home_page_hook [2019/07/22 10:40] (current)
admin
Line 4: Line 4:
 {{:​uphp:​blockly_home_script.png?​800|}} {{:​uphp:​blockly_home_script.png?​800|}}
  
-Note that the hook 'On Home Page' needs to be selected for this.+The script above displays data which has been generated dynamically. ​ To do this, refer to the variable using <code json>​{{livedata.cnt}}</​code>​
  
-To see how to use this variable on the home page, see [[uphp:​ajax_generation|Ajax Generation]].+Any variable generated by the AJAX script can be referred t by prefixing:<​code json>​livedata.</​code>​. 
 + 
 +Note that the hook 'On Home Page' needs to be selected for this widget to appear. 
 + 
 +To see how to generate ​the variable, see [[uphp:​ajax_generation|Ajax Generation]].
  
 Options for the widget are shown below and accessible by clicking the Options button: Options for the widget are shown below and accessible by clicking the Options button: