473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 22593
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Learner | last post by:
Hello, I have database field called 'PullAHead' defined as a bit field. Now if user doesn't pick a 'Yes' or 'No' in the front I need to be able to send a null value into the 'PullAHead' field in...
11
by: Bllich | last post by:
hy, I have int column 'number' in my table that allowes nulls when I instance a dataTable in my winform app. and I want to do table.AddTableRow(string name, int number); I need to send null...
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
1
by: geevaa | last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3 XMLHttpRequest and AJAX for PHP programmers James Kassemi Introduction: Although the concept isn't entirely new, XMLHttpRequest...
17
by: Arjen | last post by:
Hi, I want to reload 2 divs at one click. Ive tried: <a href = "javascript:void(0);"...
4
by: Laurahn | last post by:
How can i send from VB 2005 a null value to a image field on a database in SQL 2005
21
by: Leena P | last post by:
i want to basically take some information for the product and let the user enter the the material required to make this product 1.first page test.php which takes product code and displays...
2
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
1
by: srinivas33034 | last post by:
Hi there, i am working with asp.net c# and ms access as backend.. now i got some textboxes on the .aspx page and insert btn.. if i keep some textboxes unfill and press insert btn its giving me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.