I've been designing a site for awhile now, and I've run into a stand-still.
Not sure why, but the function I made $.show_message
works just fine if I call it right after it's initialized in the JavaScript file. But when I try to call it in an onclick
event, or anywhere else, I get the following error:
Error: attempt to run compile-and-go script on a cleared scope
The source code is at: http://71.238.252.43/java/message.js
I can't call messages in any other fashion than by using the function at the end of the JavaScript file, and I'm getting frustrated.
I've tried turning the $.
functions into normal functions, removing the (function($){
at the top, along with the ending part at the bottom })(jQuery);
, and nothing seems to fix it. I'm using the latest version of FireFox and Windows 7 64 bit.
Any help on this matter would be much appreciated, as I've pretty much run out of ideas.