Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Firefox 3.5 and XmlHttpRequest
Há um número excessivo de tópicos que aparecem em primeiro plano neste grupo. Para fazer com que este tópico apareça primeiro, elimine essa opção de um outro tópico.
Erro ao processar a solicitação. Tente novamente.
sinalizar
  3 mensagens - Recolher todas  -  Traduzir tudo para Traduzido (ver todos os originais)
O grupo no qual você está postando é um grupo da Usenet. As mensagens postadas neste grupo farão com que o seu e-mail fique visível para qualquer pessoa na internet.
Sua resposta não foi enviada.
Postagem publicada
 
De:
Para:
Cc:
Encaminhar para
Adicionar Cc | Adicionar Encaminhar para | Editar Assunto
Assunto:
Validação:
Com o objetivo de verificação, digite os caracteres que você vê na figura abaixo ou os números que ouvir ao clicar no ícone de acessibilidade. Ouça e digite os números que ouvir
 
Eoghan  
Ver perfil   Traduzir para Traduzido (ver original)
 Mais opções 8 jul 2009, 11:59
De: Eoghan <eoghanomur...@gmail.com>
Data: Wed, 8 Jul 2009 07:59:17 -0700 (PDT)
Local: Qua 8 jul 2009 11:59
Assunto: Firefox 3.5 and XmlHttpRequest
I'm noticing a problem using a deferred with firefox 3.5.

I have a bit of javascript at the bottom of the html to synthesize a
domload event (but I have also reproduced this behaviour with a plain
window.onload event) and fire off an AJAX request :

    ....
    <script type="text/javascript">signal(window, 'onDOMload');</
script>
    </body></html>

file.js :

    connect(window, 'onDOMload', function(e){
        var loadc = loadJSONDoc("/test");
        loadc.addCallback(function(r){ log('success'); });
        loadc.addErrback(function(r){ log('error'); });
    });

Most of the time in firefox 3.5 nothing at all gets logged ... you can
see that the JSON response was returned correctly in firebug, but
neither the callback or errback fires. The status of 'loadc' is
'success'.

It appears to work correctly in both Chrome and IE8.
When I downgrade firefox to 3.0.11 it also runs as expected.

Anyone else seeing anything similar?

I have a feeling that it has something to do with that I'm firing off
the request early, while the rest of the page is loading... I've used
callLater to delay the request, and see the same behaviour but much
less freequently.

Eoghan


    Encaminhar  
É necessário Acessar antes de postar mensagens.
Para postar uma mensagem você precisa primeiro participar deste grupo.
Atualize seu apelido na página de configurações da inscrição antes de postar.
Você não tem a permissão necessária para postar.
Karl Norby  
Ver perfil   Traduzir para Traduzido (ver original)
 Mais opções 8 jul 2009, 13:11
De: Karl Norby <Karl.No...@gmail.com>
Data: Wed, 8 Jul 2009 09:11:34 -0700 (PDT)
Local: Qua 8 jul 2009 13:11
Assunto: Re: Firefox 3.5 and XmlHttpRequest
I ran your test in FF3.5, and I ended up seeing no log entry in about
1 of every 10 trials, although I saw the request every time in
firebug. I changed your test around to use body onload instead, and it
works fine every time I test it. Since the requests seem to be going
through, signal.js is loading every time before signal is called, but
logging probably is not (loaded much later than signal). If I change
'log' to 'alert' in your example, the problem doesn't persist.
So, even if FF loads all of the scripts in head in the correct order,
script tags in body can be loaded at any point of that process, thus
creating the race condition. That's probably a bug in firefox then, as
I can't think of why that behavior would be desirable.

Cheers!

-Karl

On Jul 8, 9:59 am, Eoghan <eoghanomur...@gmail.com> wrote:


    Encaminhar  
É necessário Acessar antes de postar mensagens.
Para postar uma mensagem você precisa primeiro participar deste grupo.
Atualize seu apelido na página de configurações da inscrição antes de postar.
Você não tem a permissão necessária para postar.
Eoghan Murray  
Ver perfil   Traduzir para Traduzido (ver original)
 Mais opções 8 jul 2009, 14:10
De: Eoghan Murray <eoghanomur...@gmail.com>
Data: Wed, 8 Jul 2009 10:10:40 -0700 (PDT)
Local: Qua 8 jul 2009 14:10
Assunto: Re: Firefox 3.5 and XmlHttpRequest
Thanks for reproducing :)

I've originally encountered the bug with a packed version of MochiKit;
in that case, Signal.connect firing implies that the rest of MochiKit
is available including logging.

I've also tested it with connect(window, 'onload', ... )  where it
occurs less frequently.

I've quite a number of images on the page, and it seems to occur more
frequently if I do a full cache reload of the page.

Here it is 'in the wild': http://gs.statcounter.com/
(MochiKit.Logging is not enabled; if the bug occurs the flash graph
will not load)

Eoghan

On Jul 8, 5:11 pm, Karl Norby <Karl.No...@gmail.com> wrote:


    Encaminhar  
É necessário Acessar antes de postar mensagens.
Para postar uma mensagem você precisa primeiro participar deste grupo.
Atualize seu apelido na página de configurações da inscrição antes de postar.
Você não tem a permissão necessária para postar.
Fim das mensagens
« Voltar às Discussões « Tópico recente     Tópico antigo »

Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2010 Google