PDA

View Full Version : HTTP RESPONSE ERROR in ext-base.js o.conn.send(postData || null);



chamlie
29 Jun 2010, 1:29 AM
Hi all,

I have developed an application with using Store which is set as autoSave : false for forcing any update control to sen XHR request to server.

This works fine when sending XHR to update, create and read url and response to server.

However, when I run ds.remove(record) and ds.save(); to trigger destroy function,

the error come out in

ext-base-w-comments.js (line 2519) o.conn.send(postData || null);

I have checked that there is not server error in the server side (I think the response received cannot be loaded in the script but I dunno why it can in order method(update/create..etc))

I am using firefox for development browser which version 3.6.6.

Is there any possible issue to cause ext-base.js (o.conn.send(postData || null);) error?

Thanks for any reply :)

Animal
29 Jun 2010, 1:46 AM
What do the request and response packets look like?

I mean the whole thing, copied from Fiddler.

chamlie
29 Jun 2010, 7:58 PM
Hi Animal, Thank you for yor reply, Here are the message from Fiddler,

found that it is all corrected :(

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=ISO-8859-1
Content-Language: en-US
Content-Length: 16
Date: Wed, 30 Jun 2010 03:21:18 GMT

{"success":true}

Animal
29 Jun 2010, 9:17 PM
What's the error message exactly?

chamlie
30 Jun 2010, 1:45 AM
There is no error message form Fiddler :(
The response are successfully posted by the server side.

However, there is a firebug error caught on ext-base-w-comments.js (line 2519) o.conn.send(postData || null);

Animal
30 Jun 2010, 1:57 AM
How can there be an error on the send call when there is a response coming back?

What is the error?