MyBB Community Forums

Full Version: MyAlerts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It works fine on the alerts page. Just not from index deleting from the dropdown. Yea, prototype Luddite reporting in Toungue
Hm. It seems like Prototype isn't even triggering the click event. It should be logging the event...
So um... yeah.. I waited the next day and I didn't get a PM, and then days pasted. Are you free sometime tomorrow, I guess? Been waiting to get this plugin fixed for a week now and such. Smile
Oops. I might have forgotten...
Hi

I have noticed an increase in js errors on my site since installing MyAlerts

This is what I get in the inspect thingy:

Uncaught exception: TypeError: Cannot convert 'element' to object
Error thrown at line 6385, column 4 in getUniqueElementID(element) in http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js:
    if (typeof element._prototypeUID === 'undefined')
called from line 6408, column 6 in getRegistryForElement(element, uid) in http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js:
    uid = getUniqueElementID(element);
called from line 6421, column 4 in register(element, eventName, handler) in http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js:
    var registry = getRegistryForElement(element);
called from line 6464, column 4 in observe(element, eventName, handler) in http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js:
    var entry = register(element, eventName, handler);
called from line 28, column 747 in <anonymous function>() in http://blackcanvas.net/jscripts/combined.js?ver=1604:
    Event.observe("getUnreadAlerts",
called via Function.prototype.call() from line 6723, column 6 in <anonymous function>(event) in http://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js:
    handler.call(element, event);
Well, that's weird. Are you using the same version of prototype as is shipped with MyBB 1.6.9? WHen I built and tested the Prototype version, no errors were logged.
no - I am loading from Google - prototype 1.7.1. files are also combined using Closure Compiler from Google.
Hm. 1.7.1 is shipped with MyBB so that should be fine. Did you get these errors before compiling?
Think so - will double check. Thanks for the support BTW - I think all the Prototype Luddites are grateful you made a version for us.
I would support it better if I were a little better with the library. The jQuery version is much better supported Wink