JosComment - problem in ajax send funciton - Joomla! Forum - community, help and support


dear sirs,

i using joscomment 2.40 final on site time. realy ajax based system , of component. became unstable, can not understand why. problem in firefox. can add comments , not. when can not add, have error in java console of firefox:

error: uncaught exception: [exception... "component returned failure code: 0x804b000f [nsixmlhttprequest.setrequestheader]"  nsresult: "0x804b000f ()"  location: "js frame :: http://blablabla/components/com_comment ... /client.js :: ajaxsend :: line 113"  data: no]

here code of send function, in error happens:

code: select all

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);
}


thanks in advance






Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'