Yeap it seems that was it :) Thank you.
On Nov 9, 10:15 am, Barry van Oudtshoorn <[email protected]> wrote: > This may well be due to Firebug -- try disabling AJAX requests in the > "console" tab, and see if it fixes things. It's a known bug in Firebug > that they're working to resolve. > > On 09/11/10 16:13, Nemok wrote: > > > > > > > > > > > Hello, > > > I have a problem send a Request, but only in Firefox (4, beta6), it > > works fin on latest Chrome. > > I am using Mootools 1.3 with compatibility and code looks like: > > > var myRequest = new Request( > > { > > 'url': g_helloAddress, > > onSuccess: function(response, res) > > { > > console.log("Received hello > > response: " + response); > > > }, > > onFailure: function(response) > > { > > insertChatMessage('Server > > handshake failure', response); > > //publishData(0, {type: 0, > > message: "ready"}); > > }, > > onException: function(response) > > { > > insertChatMessage('Server > > handshake exception', response); > > //publishData(0, {type: 0, > > message: "ready"}); > > } > > }); > > myRequest.send({data: {id:g_clientID, url: > > g_helloAddress}}); > > > where g_helloAddress contains "/hello" > > On the server (nodejs) I have the following code for treating the > > request: > > > res.writeHead(200, {'Content-Type': 'text/plain'}); > > res.end(json({options: {...}), 'utf8'); > > > The problem is that in Firefox nothing happens, as the message is sent > > but neither onSuccess nor onFailure nor onException are called. > > When I use Firebug, I can see the request is sent and the response is > > received as it should, but the code doesn't react. > > This wasn't working on Mootools 1.2 either. > > Chrome works as expected. > > > Do you know what the problem might be? > > > Thank you. > > -- > Barry van Oudtshoornwww.barryvan.com.au > > Not sent from my Apple πPhone.
