From version < 37.1 >
edited by Marius Dumitru Florea
on 2016/04/05
To version < 38.1 >
edited by Vincent Massol
on 2017/09/01
< >
Change comment: Copied from platform:DevGuide.JavaScriptAPI

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.mflorea
1 +XWiki.VincentMassol
Content
... ... @@ -28,8 +28,8 @@
28 28  document.observe("xwiki:dom:loaded", function(){
29 29   // Initialization that can rely on the fact the DOM is XWiki-tranformed goes here.
30 30  });
31 -{{/code}})))
32 -(((
31 +{{/code}}
32 +)))(((
33 33  {{info}}
34 34  It is recommended to bind startup scripts to this event instead of ##window.load## or ##document.dom:loaded##.
35 35  {{/info}}
... ... @@ -91,13 +91,12 @@
91 91   // do something specific
92 92   }
93 93  });
94 -{{/code}})))
95 -(((
94 +{{/code}}
95 +)))(((
96 96  {{warning}}
97 97  While most properties can be accessed as ##event.memo.property##, this doesn't work with ##event.memo.continue## since ##continue## is a reserved keyword.
98 98  {{/warning}}
99 -)))
100 -(((
99 +)))(((
101 101  All these events contain as extra information, in the second parameter sent to event listeners (the memo), the original click event (if any, and which can be stopped to prevent the action from completing), and the form being submitted, as ##event.memo.originalEvent##, and ##event.memo.form## respectively.
102 102  )))
103 103  
... ... @@ -358,3 +358,4 @@
358 358  {{code}}
359 359  this.entities = XWiki.EntityReferenceTree.fromJSONObject(transport.responseText.evalJSON());
360 360  {{/code}}
360 +)))
No changes

Get Connected