Sun 26 Aug 2007
Ajax Error: Exception… “Component returned failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]“
Posted by NZEYIMANA Emery Fabrice under English , Software[3] Comments
I have not been able to correctly trace this error, but by only making sure that every XMLHttpRequest gets its unique name, the problem seems to dissappear. I suspect this error might be caused by an object not closing its connection properly.
[code]
Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x804b000f (<unknown>)" location: "JS frame
[/code]
Curiously, this problem comes only in Firefox (I use 2.0.0.6) and not in Internet Explorer (I use ).
October 25th, 2007 at 12:40
i have the same problem … is any one got the solution
Please help me ..
October 25th, 2007 at 13:24
As I said in the post, I changed the sources and made sure that any XMLHttpRequest I created has a different name. No reusing of names. Try that trick and hopefully you will have the problem dissappear
October 23rd, 2012 at 19:09
Hi,
I’m not pro coder but I solved this problem by moving the open request to top.
Like this:
http.open(‘POST’, ”, true);
http.setHeader();
http.onreadystatechange=function(){
//your code.
}
Hope this will works!