Fixing an issue with output parameters that are of type IntPtr
[castle.git] / MonoRail / TestSiteBrail / Views / jsgeneration / CheckCNPJ.brailjs
blob73e491ad398a1ce6fc4ff067c368d9383f1598e1
1 if  not isValid: \r
2         ## not valid CNPJ  \r
3         \r
4         page.Call('alert', '"start"')\r
5     page.Call('showError', '"invalid data"')\r
6     page['lblcnpj'].style.color = '"#FF0000"'\r
7         page.Call('alert', '"end"')\r
8 \r
9 else:\r
11         if exists:\r
12                         ##page.ReplaceHtml('divOperation', {"partial":"shared/cnpjDiv.brail"})\r
13                         page.ReplaceHtml('divOperation', 'TODDDDDDDDDDDDDDDDDDDDDDDDDD AAAAAAAAAAAAAAAAAAAAA DDDDDDDDDDDDDDDDDDD AAAAAA')\r
14                         page.Show('divOperation')\r
15                         page['txtSenhaErro'].focus()\r
16         end \r
18     page['lblcnpj'].style.color = '"#6784A0"'\r
19     page.Hide('errormsg')\r
20 end