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.

Reply via email to