469,338 Members | 8,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

AJAX - http.send(null)

I get this error everytime I finish an AJAX post with http.send(null):

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [file
name here] :: getReplyWindow :: line 62" data: no]

Is it necessary to follow up the final http.send with http.send(null)?

Thanks,
Mike

Mar 17 '06 #1
11 22359
af********@gmail.com wrote in news:1142620705.098253.10440
@u72g2000cwu.googlegroups.com:
I get this error everytime I finish an AJAX post with http.send(null):

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [file
name here] :: getReplyWindow :: line 62" data: no]

Is it necessary to follow up the final http.send with http.send(null)?

Thanks,
Mike


try this instead:

http.send("");
Mar 17 '06 #2
Nope I still get it. When I send http.send(null) on a get, everything
works fine- just not when posting after sending the post parameters.
Are you only allowed to do one http.send() command per state change? I
mean, there's these:
0: Uninitialized
1: Loading
2: Loaded
3: Interactive
4: Finished

After the first send, it just goes into state 4, huh?

Mar 17 '06 #3
af********@gmail.com wrote:
I get this error everytime I finish an AJAX post with http.send(null):

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [file
name here] :: getReplyWindow :: line 62" data: no]

Is it necessary to follow up the final http.send with http.send(null)?


You are not making any sense. XMLHTTPRequest::send() can only be called
once-in-a-row reliably.
PointedEars
Mar 18 '06 #4
Rob Mitchell wrote:
af********@gmail.com wrote [...]:
I get this error everytime I finish an AJAX post with http.send(null):

Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [file
name here] :: getReplyWindow :: line 62" data: no]
[...]


try this instead:

http.send("");


The meaning of this is entirely different than passing `null',
and it does not have anything to do with the exception:

<URL:http://lxr.mozilla.org/mozilla1.8.0/source/extensions/xmlextras/base/src/nsXMLHttpRequest.cpp#1423>

Please get informed before you try to provide any advice.
PointedEars
Mar 18 '06 #5
Dear Thomas 'PointedEars',

I was asking why send can't be called more than once...

Also, Rob was just trying to help. Stop breeding negativity on the
newsgroups.

Thanks,
Mike

Mar 21 '06 #6
afrinspray wrote:
I was asking why send can't be called more than once...
And /I/ provided that answer.
Also, Rob was just trying to help.
But he did not. He posted some wild assumption of his.
Stop breeding negativity on the newsgroups.


Go away. Thanks.
PointedEars
Mar 21 '06 #7
Nope I'm still here.

Pointy Ears wrote:
And /I/ provided that answer. [earlier he said] You are not making any sense. XMLHTTPRequest::send() can only be called
once-in-a-row reliably.


Is hardly an answer... how does that explain why?

Mar 21 '06 #8
afrinspray wrote:
Nope I'm still here.

Pointy Ears wrote:


My nickname is "PointedEars", afrospray.
And /I/ provided that answer.

[earlier he said]
You are not making any sense. XMLHTTPRequest::send()
can only be called once-in-a-row reliably.


Is hardly an answer... how does that explain why?


Follow the link.
PointedEars
Mar 21 '06 #9
Alright after wasting a half hour of my life I finally understand the
send method of xmlhttprequest. God bless you PointedEars.

BTW nice nickname! Must suck being a vampire. Also I might just have
to change my name to afrospray.

Mar 21 '06 #10
afrinspray wrote:
Alright after wasting a half hour of my life I finally understand the
send method of xmlhttprequest.
You needed _half an hour_(!) to understand the connection between

| Error: uncaught exception: [Exception... "Component returned failure
| code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]"
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
| nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [file
^^^^^^^^^^^^^^^^
| name here] :: getReplyWindow :: line 62" data: no]

<http://lxr.mozilla.org/mozilla1.8.0/source/extensions/xmlextras/base/src/nsXMLHttpRequest.cpp#1423>
(see news:12****************@PointedEars.de)

-------- /extensions/xmlextras/base/src/nsXMLHttpRequest.cpp ----------
[...]
1423 nsXMLHttpRequest::Send(nsIVariant *aBody)
^^^^^^^^^^^^^^^^ ^^^^
1424 {
1425 nsresult rv;
1426
1427 // Return error if we're already processing a request
1428 if (XML_HTTP_REQUEST_SENT & mState) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1429 return NS_ERROR_FAILURE;
^^^^^^^^^^^^^^^^
1430 }

? What kind of a silly loser are you anyway?
God bless you PointedEars.

BTW nice nickname! Must suck being a vampire. Also I might just have
to change my name to afrospray.


FOAD. *PLONK*
PointedEars
Mar 22 '06 #11
Alright fine. I didn't even click the link. But you still have a
retarded name.

Mar 22 '06 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Bllich | last post: by
1 post views Thread by geevaa | last post: by
17 posts views Thread by Arjen | last post: by
4 posts views Thread by Laurahn | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.