Forum Moderators: open

Message Too Old, No Replies

failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]

         

bziik

10:04 am on Aug 23, 2007 (gmt 0)

10+ Year Member



Dear Sirs,

I am using commenting system on my Joomla! website for some time. I realy like its ajax based system and the look of this component. But recently it became unstable, I can not understand why. The problem only in Firefox. Sometimes I can add comments and sometimes not. When I can not add, I have an error in Java Console of Firefox:

Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000f [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x804b000f (<unknown>)" location: "JS frame :: http://example.com/components/com_comment/joscomment/jscripts/client.js :: ajaxSend :: line 113" data: no]

Here is the code of send function, in which error happens:

Code:

function ajaxSend(data, onReadyStateChange)
{
109. document.joomlacommentform.bsend.disabled = true;
110. busyImage.create();
111. http.open("POST", 'index2.php', true);
112. http.onreadystatechange = onReadyStateChange;
113. http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
114. http.send(data);
}

What is the cause? Why sometimes it is working and sometimes not?

Thanks in advance

bziik

8:02 am on Aug 24, 2007 (gmt 0)

10+ Year Member



anyone? :(

Arno_Adams

11:16 am on Aug 24, 2007 (gmt 0)

10+ Year Member



Maybe there's no data to be posted.
Try using firebug to debug.

HTH, AA

bziik

11:51 am on Aug 24, 2007 (gmt 0)

10+ Year Member



Thanks for answer.

How to enable this debug?

I thik I found the problem - theres is a confilct with a another AJAX based component. What do you think - is it possible to find where this conflict is? ;)

daveVk

1:32 am on Aug 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



May be prudent to check http.readyState

readyState Returns the state of the object:

0 = uninitialized
1 = loading
2 = loaded
3 = interactive
4 = complete

bziik

8:35 am on Aug 30, 2007 (gmt 0)

10+ Year Member



Thanks for answers.

I am not so good in AJAX (starting to learn php only). could you please advice, what should I change?

Thank you!