Changes for page Ajax

Last modified by Jean-Vincent Drean on 2011/02/25 14:37

From version 1.1
edited by Jean-Vincent Drean
on 2011/02/25 15:36
Change comment: There is no comment for this version
To version 1.4
edited by Jean-Vincent Drean
on 2011/02/25 14:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,14 +1,15 @@
1 1  {{html clean="false"}}
2 2  <div id="box">
3 3  Box content
4 -<input type="button" id="updateButton"/>
4 +<input type="button" id="updateButton" value="update"/>
5 5  </div>
6 6  
7 -<script type="">
8 -$(updateButton).observe('click', function(event) {
7 +<script type="text/javascript">
8 +$('updateButton').observe('click', function(event) {
9 9   new Ajax.Updater('box', '/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiPreferences/0/properties/colorTheme', {
10 10     method: 'get',
11 11     insertion: Insertion.Top
12 12    });
13 13  });
14 +</script>
14 14  {{/html}}