Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
protogrid:script_library [2017-12-15 09:47] 46.140.51.3protogrid:script_library [2020-04-18 14:05] – [Execute JS on card load] dru
Line 39: Line 39:
 </code> </code>
  
-===== Client ScriptLibrary =====+===== Client-ScriptLibrary =====
 The client-side script library contains all the code happening locally on the clients machine. This contains all the code executed when [[protogrid:trigger|triggered]] by a client action, especially the code that should be executed at [[protogrid:button|button]] clicks. The client-side script library contains all the code happening locally on the clients machine. This contains all the code executed when [[protogrid:trigger|triggered]] by a client action, especially the code that should be executed at [[protogrid:button|button]] clicks.
  
Line 51: Line 51:
 on_load(); on_load();
 function on_load() { function on_load() {
-    //do something useful+    alert("Hello World!"); 
 +    //do something more useful
 } }
 </code> </code>
Print/export