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
4 <title>JS Generation test</title>
\r
6 ${AjaxHelper.InstallScripts()}
\r
8 <script type="text/javascript">
\r
11 function VerifyCNPJ()
\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
19 function showError(arg)
\r
21 alert('show Error invoked with ' + arg)
\r
22 $('errormsg').show();
\r
34 <div id="divOperation" class="msgerrorFundo" style="top:170px;display:none;">
\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