Forum Moderators: open
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