I have some forms where a javascript function will only fire 1 time, then I get the 'object doesn't support property or method' error.
<a onclick="myAccount();" href="#">my account</a>
It will fire the first click - opens a form - but after closing the form the function does not fire a 2nd time. It happens in both IE & FF. In IE I get this snippet:
function onclick(event)
{
myAccount();return false;
}
The funny thing is both Firebug & IE debugger can see and execute the function. From IE debugger:
function myAccount() {
retData = $.ajax({
url: '/administrate/ajax/myAccount/users',
async: false
});
try{
obj = eval('('+retData.responseText+')');
if (obj.status == "true") showAltPopup(obj.html);
if (obj.messages) showError(obj.messages);
if (obj.code ) eval(obj.code);
}catch(err) {
showError(err.message);
}
}
This is my first jquery project [usually use mootools] but not sure if it's related at all.
Since both IE & FF have problems I assume it's something legitimate, but both of the debuggers can execute it fine.


Reply With Quote
Bookmarks