2013-05-21, 09:06 AM
Hello there,
Few days ago, everything still be okay. Until I install the plugin Registration Secure Question into MyBB. Then, the AJAX not working any more...
I uninstalled that plugin, but the AJAX still not working From registration page (validation.js), to showthread page (thread.js) and also prototype The edit button in postbit not working when I tried to click to it...
When I debug in Chrome, I found this
Object [object Object] has no method 'attachEvent'
Howdy strange problem... All my jquery script, function always had this : "jQuery.noConflict();" and use "jQuery" instead of "$" so I think this is not conflicting between jquery and prototype, but not sure much.
What do you think? I need your help, guys!
Few days ago, everything still be okay. Until I install the plugin Registration Secure Question into MyBB. Then, the AJAX not working any more...
I uninstalled that plugin, but the AJAX still not working From registration page (validation.js), to showthread page (thread.js) and also prototype The edit button in postbit not working when I tried to click to it...
When I debug in Chrome, I found this
Object [object Object] has no method 'attachEvent'
function observeStandardEvent(element, eventName, responder) {
var actualEventName = getDOMEventName(eventName);
if (element.addEventListener) {
element.addEventListener(actualEventName, responder, false);
} else {
element.attachEvent('on' + actualEventName, responder);
Uncaught TypeError: Object [object Object] has no method 'attachEvent'
}
}
function observeCustomEvent(element, eventName, responder) {
if (element.addEventListener) {
element.addEventListener('dataavailable', responder, false);
} else {
element.attachEvent('ondataavailable', responder);
Uncaught TypeError: Object [object Object] has no method 'attachEvent' (repeated 2 times)
element.attachEvent('onlosecapture', responder);
}
}
Howdy strange problem... All my jquery script, function always had this : "jQuery.noConflict();" and use "jQuery" instead of "$" so I think this is not conflicting between jquery and prototype, but not sure much.
What do you think? I need your help, guys!