Sorry, I forgot to put my code here:
<script type="text/javascript" src="../includes/prototype.js"></script>
<script type="text/javascript">
var Geral = Class.create(
{
__getPessoaFisicaPeloCPF: function ( nu_cpf)
{
try{
var req = new Ajax.Request('PessoaFisica.php?opt=cpf&nu_cpf=' +
nu_cpf.value, {
method: 'get',
onComplete: function (res)
{
eval('resposta = ' +
res.responseText);
$("cpf").value = '';
$("nome").value = '';
if(resposta.ERRO){
alert("CPF não
localizado na Receita Federal");
}else{
if( resposta.cpf != ""
&& resposta.nome != ""){
$("cpf").value
= resposta.cpf;
$("nome").value
= resposta.nome;
$('cpf').setAttribute('readonly', 'readonly');
$('nome').setAttribute('readonly', 'readonly');
}
}
}
});
}catch( e ){
alert(e.getMessage());
}
}
});
var Geral = new Geral();
</script>
<body>
<input id="cpf" type="text" title="CPF" readonly="readonly" value="
999.999.654-40" name="nu_cpf_gestor_local"/>
<input id="nome" type="text" title="Nome" readonly="readonly" value="" name
="nome"/>
<script type="text/javascript" DEFER="DEFER">
window.onload = function () {
if($("cpf").value != "")
Geral.__getPessoaFisicaPeloCPF($("cpf"));
}
</script>
</body>
It's generating the following errors,
Can anyone help me?
2008/9/11 Diodeus <[EMAIL PROTECTED]>
>
> Please show us YOUR code, where make the Ajax request.
>
> On Sep 11, 10:43 am, Roberto <[EMAIL PROTECTED]> wrote:
> > Hello everybody,
> >
> > first, i have to apologize, becouse I don't speak english very well.
> >
> > I'm having problems whith prototype in Internet Explore.
> >
> > I've installed the visual studio in my computer to try debuggin errors
> > in IE, and I've found a "msxml3.dll: System error: -1072896658" error.
> > The visual studio program have linked this error to the
> > prototype.js( (version 1.6.0)) archive, in line 1368, accordin de
> > following code:
> >
> > Ajax.Response = Class.create({
> > initialize: function(request){
> > this.request = request;
> > var transport = this.transport = request.transport,
> > readyState = this.readyState = transport.readyState;
> >
> > if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {
> > this.status = this.getStatus();
> > this.statusText = this.getStatusText();
> > this.responseText =
> > String.interpret(transport.responseText); ////////////LINKED ERROR
> > HERE
> > this.headerJSON = this._getHeaderJSON();
> > }
> >
> > if(readyState == 4) {
> > var xml = transport.responseXML;
> > this.responseXML = xml === undefined ? null : xml;
> > this.responseJSON = this._getResponseJSON();
> > }
> > },
> >
> > are there anyboby who can help me?
> >
> > thanks,
> >
> > Roberto.
> >
>
--
Roberto.
cel 81627234
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---