On Thursday, November 09, 2006 2:17 PM ???? <> said:
> jQuery.fn.debug = function(message) {
> return this.log('debug:' + (message || '')
> +"[").each(function(){$.log(this);}).log("]");
> };
> jQuery.fn.log = jQuery.log = function(message) {
> if(window.console)
> console.debug(message)
> else if (window.opera && window.opera.postError)
> window.opera.postError(s)
> else if (not(message.match(/^[\[\]]$/)))
> alert(message);
> return this;
> };
How do I use that?
I added it to the top of my custom.js file (which is included after
jQuery) and I tried $.debug(variableName) and all it did was say
"$.debug is not a function".
Thanks,
Chris.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/