Upping the priority of helpers, if a parameter and a helper has the same name, the...
[castle.git] / MonoRail / TestSiteNVelocity / views / ajax / periodicallycall.vm
blob3763396a4c7dae96252cac62e249a1f8330d0a1d
1 <html>\r
2 <head>\r
3 $AjaxHelper.GetJavascriptFunctions()\r
4 <script>\r
5 function update(req)\r
6 {\r
7         // $('value').value = req.responseText;\r
8 }\r
9 </script>\r
10 </head>\r
13 <body>\r
15 <form id="theform">\r
16   Please enter the zip code:<br>\r
17   <input type="text" name="value" id="value" value="1"> \r
18   \r
19   <br>\r
20   <div id="newValue">\r
21   </div>\r
22 </form>\r
24 $AjaxHelper.PeriodicallyCallRemote("%{frequency='1', onsuccess='update(request)', url='periodicallycalled.rails', update='newValue', with='Form.serialize(theform)'}")\r
26 </body>\r
27 </html>