Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / TestSiteBrail / Views / jsgeneration / index.brail
blob8ae96875811ce0d2bf9ee57836fa564966b92655
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <html xmlns="http://www.w3.org/1999/xhtml" >\r
3 <head>\r
4         <title>JS Generation test</title>\r
5         \r
6         ${AjaxHelper.InstallScripts()}\r
7         \r
8         <script type="text/javascript">\r
9         \r
10      /* Check CNPJ */\r
11      function VerifyCNPJ()\r
12      {\r
13         var cnpj = $F("txtCNPJ");\r
14         var url = 'CheckCNPJ.rails';\r
15             var pars = 'cnpj=' + cnpj;          \r
16             new Ajax.Request(url,{method: 'post', evalScripts: true, parameters: pars});        \r
17      }\r
18      \r
19      function showError(arg)\r
20      {\r
21                 alert('show Error invoked with ' + arg)\r
22                 $('errormsg').show();\r
23      }\r
24      \r
25      </script>\r
26         \r
27 </head>\r
29 <body>\r
31 <div id="errormsg">\r
32 </div>\r
34 <div id="divOperation" class="msgerrorFundo" style="top:170px;display:none;">\r
35 </div>\r
37 <span id="lblcnpj">Some label</span>\r
38 <input onblur="VerifyCNPJ();" maxlength="15" name="txtCNPJ" type="text" id="txtCNPJ" />\r
40 <a href="#" onclick="new Ajax.Request('CheckCNPJ.rails', {asynchronous:true, evalScripts:true}); return false;">click me</a>\r
42 </body>