Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-13 Thread Alex Cook
Here here, this is a great plugin for this purpose...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: Monday, March 12, 2007 6:07 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Please add a basic debug function to the jQuery
core...

 

Here is an awesome plug in that I use all the time:

http://jquery.glyphix.com/

You can see it in action at: http://ov-oba.informationexperts.com/ 

-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Erik Beeson
Given that you don't need (or want) debug functionality in a
production environment, I would argue that this is better suited to a
plugin and doesn't belong in the core.

--Erik

On 3/12/07, Daemach [EMAIL PROTECTED] wrote:

 I would like to be able to dump the contents of the current selector to the
 console using $#myselector).debug() without loading a plugin.  Something
 as simple as the following would work, though if you devs have some ideas on
 how to make it more useful I'm sure it would be welcomed, especially by new
 users:

  jQuery.fn.debug = function() {
  console.log(this);
  return this;
  }

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ codebase so
 it's always available?
 --
 View this message in context: 
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9443378
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Klaus Hartl
Erik Beeson schrieb:
 Given that you don't need (or want) debug functionality in a
 production environment, I would argue that this is better suited to a
 plugin and doesn't belong in the core.

I second that. You cannot rely on console anyway, so why not make it a 
plugin that facilitates all the different browser possibilities to 
possible extend...


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

*sigh*

Fine.  I'll just add the function to my local jquery.js  It's a pain in the
neck to have to add and remove the plugin code for a 30 second test.



Klaus Hartl wrote:
 
 Erik Beeson schrieb:
 Given that you don't need (or want) debug functionality in a
 production environment, I would argue that this is better suited to a
 plugin and doesn't belong in the core.
 
 I second that. You cannot rely on console anyway, so why not make it a 
 plugin that facilitates all the different browser possibilities to 
 possible extend...
 
 -- Klaus
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9444730
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Christopher Jordan

Daemach,

Why don't you just make a nice debug plug-in, that you can include at 
the top of your code to give you the functions you need, then when 
you're done you just remove the one script src=... line?


That's not a half bad idea. Anyone up for doing something like that?

Chris

Daemach wrote:

*sigh*

Fine.  I'll just add the function to my local jquery.js  It's a pain in the
neck to have to add and remove the plugin code for a 30 second test.



Klaus Hartl wrote:
  

Erik Beeson schrieb:


Given that you don't need (or want) debug functionality in a
production environment, I would argue that this is better suited to a
plugin and doesn't belong in the core.
  
I second that. You cannot rely on console anyway, so why not make it a 
plugin that facilitates all the different browser possibilities to 
possible extend...


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





  


--
http://www.cjordan.us

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

I already have a plugin - it contains the code I put in my first email.  I
just don't want to have to add that line or remember to remove it.  Adding
the function directly to jquery will not affect the file size significantly
and it will always be available.

If I ever decide to switch to safari or opera (not bloody likely) I'll add a
function that tests for the availability of a console.  Until then this
works for me.


Christopher Jordan wrote:
 
 Daemach,
 
 Why don't you just make a nice debug plug-in, that you can include at 
 the top of your code to give you the functions you need, then when 
 you're done you just remove the one script src=... line?
 
 That's not a half bad idea. Anyone up for doing something like that?
 
 Chris
 
 Daemach wrote:
 *sigh*

 Fine.  I'll just add the function to my local jquery.js  It's a pain in
 the
 neck to have to add and remove the plugin code for a 30 second test.



 Klaus Hartl wrote:
   
 Erik Beeson schrieb:
 
 Given that you don't need (or want) debug functionality in a
 production environment, I would argue that this is better suited to a
 plugin and doesn't belong in the core.
   
 I second that. You cannot rely on console anyway, so why not make it a 
 plugin that facilitates all the different browser possibilities to 
 possible extend...

 -- Klaus

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


 

   
 
 -- 
 http://www.cjordan.us
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9444927
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Greasemonkey is also excelent for this.

---N

 Daemach,
 
 Why don't you just make a nice debug plug-in, that you can 
 include at the top of your code to give you the functions you 
 need, then when you're done you just remove the one script 
 src=... line?
 
 That's not a half bad idea. Anyone up for doing something like that?
 
 Chris
 
 Daemach wrote: 
 
   *sigh*
   
   Fine.  I'll just add the function to my local jquery.js 
  It's a pain in the
   neck to have to add and remove the plugin code for a 30 
 second test.
   
   
   
   Klaus Hartl wrote:
 
 
   Erik Beeson schrieb:
   
 
   Given that you don't need (or want) 
 debug functionality in a
   production environment, I would argue 
 that this is better suited to a
   plugin and doesn't belong in the core.
 
 
   I second that. You cannot rely on console 
 anyway, so why not make it a 
   plugin that facilitates all the different 
 browser possibilities to 
   possible extend...
   
   -- Klaus
   
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
   
   
   
 
   
 
 
 
 -- 
 http://www.cjordan.us
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Greasemonkey does exactly what you are asking for.  You can use it to
add the functions you want to your own browser.  Nothing to remove when
you publish your code, easy to enable/disable in your dev environment,
and you personally get self sufficiency from asking for a code change to
jQuery (a major library with a huge user base and a well established
change prioritization/management routine).

-Nathan



.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:
||:.

Nathan Young
Cisco.com-Interface Development
A: ncy1717
E: [EMAIL PROTECTED]  

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Daemach
 Sent: Monday, March 12, 2007 3:41 PM
 To: discuss@jquery.com
 Subject: Re: [jQuery] Please add a basic debug function to 
 the jQuery core...
 
 
 I already have a plugin - it contains the code I put in my 
 first email.  I
 just don't want to have to add that line or remember to 
 remove it.  Adding
 the function directly to jquery will not affect the file size 
 significantly
 and it will always be available.
 
 If I ever decide to switch to safari or opera (not bloody 
 likely) I'll add a
 function that tests for the availability of a console.  Until 
 then this
 works for me.
 
 
 Christopher Jordan wrote:
  
  Daemach,
  
  Why don't you just make a nice debug plug-in, that you can 
 include at 
  the top of your code to give you the functions you need, then when 
  you're done you just remove the one script src=... line?
  
  That's not a half bad idea. Anyone up for doing something like that?
  
  Chris
  
  Daemach wrote:
  *sigh*
 
  Fine.  I'll just add the function to my local jquery.js  
 It's a pain in
  the
  neck to have to add and remove the plugin code for a 30 
 second test.
 
 
 
  Klaus Hartl wrote:

  Erik Beeson schrieb:
  
  Given that you don't need (or want) debug functionality in a
  production environment, I would argue that this is 
 better suited to a
  plugin and doesn't belong in the core.

  I second that. You cannot rely on console anyway, so why 
 not make it a 
  plugin that facilitates all the different browser 
 possibilities to 
  possible extend...
 
  -- Klaus
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
  
 

  
  -- 
  http://www.cjordan.us
  
  
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the
 -jQuery-core...-tf3392275.html#a9444927
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Jörn Zaefferer
Daemach schrieb:
 I already have a plugin - it contains the code I put in my first email.  I
 just don't want to have to add that line or remember to remove it.  Adding
 the function directly to jquery will not affect the file size significantly
 and it will always be available.

 If I ever decide to switch to safari or opera (not bloody likely) I'll add a
 function that tests for the availability of a console.  Until then this
 works for me.
   
You could modify jQuery's ant build and add that plugin for development 
builds of jQuery.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Christopher Jordan

Is Greasemonkey a FF only deal?

Chris

Nathan Young -X (natyoung - Artizen at Cisco) wrote:

Greasemonkey does exactly what you are asking for.  You can use it to
add the functions you want to your own browser.  Nothing to remove when
you publish your code, easy to enable/disable in your dev environment,
and you personally get self sufficiency from asking for a code change to
jQuery (a major library with a huge user base and a well established
change prioritization/management routine).

-Nathan



.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:
||:.

Nathan Young
Cisco.com-Interface Development
A: ncy1717
E: [EMAIL PROTECTED]  

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Daemach

Sent: Monday, March 12, 2007 3:41 PM
To: discuss@jquery.com
Subject: Re: [jQuery] Please add a basic debug function to 
the jQuery core...



I already have a plugin - it contains the code I put in my 
first email.  I
just don't want to have to add that line or remember to 
remove it.  Adding
the function directly to jquery will not affect the file size 
significantly

and it will always be available.

If I ever decide to switch to safari or opera (not bloody 
likely) I'll add a
function that tests for the availability of a console.  Until 
then this

works for me.


Christopher Jordan wrote:


Daemach,

Why don't you just make a nice debug plug-in, that you can 
  
include at 

the top of your code to give you the functions you need, then when 
you're done you just remove the one script src=... line?


That's not a half bad idea. Anyone up for doing something like that?

Chris

Daemach wrote:
  

*sigh*

Fine.  I'll just add the function to my local jquery.js  


It's a pain in


the
neck to have to add and remove the plugin code for a 30 


second test.



Klaus Hartl wrote:
  


Erik Beeson schrieb:

  

Given that you don't need (or want) debug functionality in a
production environment, I would argue that this is 


better suited to a


plugin and doesn't belong in the core.
  

I second that. You cannot rely on console anyway, so why 
  
not make it a 

plugin that facilitates all the different browser 
  
possibilities to 


possible extend...

-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



  
  


--
http://www.cjordan.us


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


  

--
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the

-jQuery-core...-tf3392275.html#a9444927
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

  


--
http://www.cjordan.us

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

I'm not sure what an ant build is, but adding this to the bottom of jquery.js
on my dev box works.

jQuery.fn.debug = function() {console.log(this);  return this;}


Jörn Zaefferer wrote:
 
 Daemach schrieb:
 I already have a plugin - it contains the code I put in my first email. 
 I
 just don't want to have to add that line or remember to remove it. 
 Adding
 the function directly to jquery will not affect the file size
 significantly
 and it will always be available.

 If I ever decide to switch to safari or opera (not bloody likely) I'll
 add a
 function that tests for the availability of a console.  Until then this
 works for me.
   
 You could modify jQuery's ant build and add that plugin for development 
 builds of jQuery.
 
 -- 
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9445463
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

I thought I would give it a quick shot, but it's not working.  I assume it's
because GM is trying to add the function after it's being called.

// ==UserScript==
// @name   jQueryDebug
// @namespace  http://www.missionincrease.org
// @descriptionAdds a debug function to jQuery
// @include*
// ==/UserScript==

if (typeof window.jQuery != undefined) {
if (typeof window.jQuery.debug == undefined) {
window.jQuery.fn.debug = function() {console.log(this);  return 
this;}  
}
}



Nathan Young -X (natyoung - Artizen at Cisco) wrote:
 
 Greasemonkey does exactly what you are asking for.  You can use it to
 add the functions you want to your own browser.  Nothing to remove when
 you publish your code, easy to enable/disable in your dev environment,
 and you personally get self sufficiency from asking for a code change to
 jQuery (a major library with a huge user base and a well established
 change prioritization/management routine).
 
 -Nathan
 
 
 
 .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:
 ||:.
 
 Nathan Young
 Cisco.com-Interface Development
 A: ncy1717
 E: [EMAIL PROTECTED]  
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Daemach
 Sent: Monday, March 12, 2007 3:41 PM
 To: discuss@jquery.com
 Subject: Re: [jQuery] Please add a basic debug function to 
 the jQuery core...
 
 
 I already have a plugin - it contains the code I put in my 
 first email.  I
 just don't want to have to add that line or remember to 
 remove it.  Adding
 the function directly to jquery will not affect the file size 
 significantly
 and it will always be available.
 
 If I ever decide to switch to safari or opera (not bloody 
 likely) I'll add a
 function that tests for the availability of a console.  Until 
 then this
 works for me.
 
 
 Christopher Jordan wrote:
  
  Daemach,
  
  Why don't you just make a nice debug plug-in, that you can 
 include at 
  the top of your code to give you the functions you need, then when 
  you're done you just remove the one script src=... line?
  
  That's not a half bad idea. Anyone up for doing something like that?
  
  Chris
  
  Daemach wrote:
  *sigh*
 
  Fine.  I'll just add the function to my local jquery.js  
 It's a pain in
  the
  neck to have to add and remove the plugin code for a 30 
 second test.
 
 
 
  Klaus Hartl wrote:

  Erik Beeson schrieb:
  
  Given that you don't need (or want) debug functionality in a
  production environment, I would argue that this is 
 better suited to a
  plugin and doesn't belong in the core.

  I second that. You cannot rely on console anyway, so why 
 not make it a 
  plugin that facilitates all the different browser 
 possibilities to 
  possible extend...
 
  -- Klaus
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
  
 

  
  -- 
  http://www.cjordan.us
  
  
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the
 -jQuery-core...-tf3392275.html#a9444927
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9445697
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Sam Collett
On 12/03/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 Daemach schrieb:
  I already have a plugin - it contains the code I put in my first email.  I
  just don't want to have to add that line or remember to remove it.  Adding
  the function directly to jquery will not affect the file size significantly
  and it will always be available.
 
  If I ever decide to switch to safari or opera (not bloody likely) I'll add a
  function that tests for the availability of a console.  Until then this
  works for me.
 
 You could modify jQuery's ant build and add that plugin for development
 builds of jQuery.

 --
 Jörn Zaefferer

 http://bassistance.de

Maybe there could be an additional download in the future? i.e. jQuery
Compressed, Uncompressed and Debug. The Debug version would have code
that would help with debugging (and perhaps log to the console
whenever events are fired, without the developer needing to add more
code) and also work cross-browser?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Minor detail.  Yes greasemonkey adds any scripts to the page last, even
after the onLoad event.  Ignoring that, greasemonkey would work great.
Unfortunately it's not practicaly to ignore that, my apologies.

N

 
 I thought I would give it a quick shot, but it's not working. 
  I assume it's
 because GM is trying to add the function after it's being called.
 
 // ==UserScript==
 // @name   jQueryDebug
 // @namespace  http://www.missionincrease.org
 // @descriptionAdds a debug function to jQuery
 // @include*
 // ==/UserScript==
 
 if (typeof window.jQuery != undefined) {
   if (typeof window.jQuery.debug == undefined) {
   window.jQuery.fn.debug = function() 
 {console.log(this);  return this;}
   }
 }
 
 
 
 Nathan Young -X (natyoung - Artizen at Cisco) wrote:
  
  Greasemonkey does exactly what you are asking for.  You can 
 use it to
  add the functions you want to your own browser.  Nothing to 
 remove when
  you publish your code, easy to enable/disable in your dev 
 environment,
  and you personally get self sufficiency from asking for a 
 code change to
  jQuery (a major library with a huge user base and a well established
  change prioritization/management routine).
  
  -Nathan
  
  
  
  
 .:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.
 _.:||:._.:
  ||:.
  
  Nathan Young
  Cisco.com-Interface Development
  A: ncy1717
  E: [EMAIL PROTECTED]  
  
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Daemach
  Sent: Monday, March 12, 2007 3:41 PM
  To: discuss@jquery.com
  Subject: Re: [jQuery] Please add a basic debug function to 
  the jQuery core...
  
  
  I already have a plugin - it contains the code I put in my 
  first email.  I
  just don't want to have to add that line or remember to 
  remove it.  Adding
  the function directly to jquery will not affect the file size 
  significantly
  and it will always be available.
  
  If I ever decide to switch to safari or opera (not bloody 
  likely) I'll add a
  function that tests for the availability of a console.  Until 
  then this
  works for me.
  
  
  Christopher Jordan wrote:
   
   Daemach,
   
   Why don't you just make a nice debug plug-in, that you can 
  include at 
   the top of your code to give you the functions you need, 
 then when 
   you're done you just remove the one script src=... line?
   
   That's not a half bad idea. Anyone up for doing 
 something like that?
   
   Chris
   
   Daemach wrote:
   *sigh*
  
   Fine.  I'll just add the function to my local jquery.js  
  It's a pain in
   the
   neck to have to add and remove the plugin code for a 30 
  second test.
  
  
  
   Klaus Hartl wrote:
 
   Erik Beeson schrieb:
   
   Given that you don't need (or want) debug functionality in a
   production environment, I would argue that this is 
  better suited to a
   plugin and doesn't belong in the core.
 
   I second that. You cannot rely on console anyway, so why 
  not make it a 
   plugin that facilitates all the different browser 
  possibilities to 
   possible extend...
  
   -- Klaus
  
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
  
  
   
  
 
   
   -- 
   http://www.cjordan.us
   
   
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
   
   
  
  -- 
  View this message in context: 
  http://www.nabble.com/Please-add-a-basic-debug-function-to-the
  -jQuery-core...-tf3392275.html#a9444927
  Sent from the JQuery mailing list archive at Nabble.com.
  
  
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
  
  
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the
 -jQuery-core...-tf3392275.html#a9445697
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Brice Burgess
Daemach wrote:
 I would like to be able to dump the contents of the current selector to the
 console using $#myselector).debug() without loading a plugin.  Something
 as simple as the following would work, though if you devs have some ideas on
 how to make it more useful I'm sure it would be welcomed, especially by new
 users:

jQuery.fn.debug = function() {
console.log(this);   
return this;
}

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ codebase so
 it's always available?
   
This is a ridiculous, not well thought out, and highly 
individual/personalized request. Of course this should be a plugin! All 
debuggers are plugins AFAIK -- or, at least compile time flags. Please 
keep the core lean, mean, and clean, and think thrice before bloating.

~ Brice

~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Kenneth

I started to roll my own for this too, but I got caught up in featurizing it
and haven't manage to finish it up. Basically I was looking for something
similar, but would do a check for $.browser.msie so that you wouldn't get an
error in IE (while adding alternative output forms, like an alert or
creating an output div). I also made primitive wrappers for timer() and
profile() so that you could simply call either function twice and not have
to worry about timer('name') + timerEnd('name'). I had planned on added a
straight pass-through method to allow one to access the Firebug native
methods unhindered, so you could do .log(%s is %d years old., Bob, 42)
but I haven't started on that aspect yet.

If there's much interest I could try to clean up the code and release it for
you guys.

By the way, you can check for Firebug using: typeof window['console'] !==
'undefined'


On 3/12/07, Daemach [EMAIL PROTECTED] wrote:



I would like to be able to dump the contents of the current selector to
the
console using $#myselector).debug() without loading a plugin.  Something
as simple as the following would work, though if you devs have some ideas
on
how to make it more useful I'm sure it would be welcomed, especially by
new
users:

 jQuery.fn.debug = function() {
 console.log(this);
 return this;
 }

Long chains that include callbacks with anonymous functions make it
difficult to use console.log($()).  Can this be added to the jQ codebase
so
it's always available?
--
View this message in context:
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9443378
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen on
this list!

And don't be an elitist prick - some people reviewing this framework are new
to jQuery and some even to javascript programming itself.  If you can't say
something nice, go work at Microsoft.


Brice Burgess wrote:
 
 Daemach wrote:
 I would like to be able to dump the contents of the current selector to
 the
 console using $#myselector).debug() without loading a plugin. 
 Something
 as simple as the following would work, though if you devs have some ideas
 on
 how to make it more useful I'm sure it would be welcomed, especially by
 new
 users:

   jQuery.fn.debug = function() {
   console.log(this);   
   return this;
   }

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ codebase
 so
 it's always available?
   
 This is a ridiculous, not well thought out, and highly 
 individual/personalized request. Of course this should be a plugin! All 
 debuggers are plugins AFAIK -- or, at least compile time flags. Please 
 keep the core lean, mean, and clean, and think thrice before bloating.
 
 ~ Brice
 
 ~ Brice
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9446525
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Karl Rudd
Daemach I think you may have read a little too much harshness into
Brice's reply. Brice may have needed to use a little clearer, not so
open to being interperated as harsh.

Brice is quite helpful usually so it would be out of character for him
to beat someone down.

We're all learning here, so let's try to keep things calm and civil.

Your debug console idea is definately something that is useful and it
would work quite well as a plugin (which is also what I believe Brice
is saying).

Karl Rudd

On 3/13/07, Daemach [EMAIL PROTECTED] wrote:

 Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen on
 this list!

 And don't be an elitist prick - some people reviewing this framework are new
 to jQuery and some even to javascript programming itself.  If you can't say
 something nice, go work at Microsoft.


 Brice Burgess wrote:
 
  Daemach wrote:
  I would like to be able to dump the contents of the current selector to
  the
  console using $#myselector).debug() without loading a plugin.
  Something
  as simple as the following would work, though if you devs have some ideas
  on
  how to make it more useful I'm sure it would be welcomed, especially by
  new
  users:
 
jQuery.fn.debug = function() {
console.log(this);
return this;
}
 
  Long chains that include callbacks with anonymous functions make it
  difficult to use console.log($()).  Can this be added to the jQ codebase
  so
  it's always available?
 
  This is a ridiculous, not well thought out, and highly
  individual/personalized request. Of course this should be a plugin! All
  debuggers are plugins AFAIK -- or, at least compile time flags. Please
  keep the core lean, mean, and clean, and think thrice before bloating.
 
  ~ Brice
 
  ~ Brice
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context: 
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9446525
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Benjamin Sterling

Here is an awesome plug in that I use all the time:

http://jquery.glyphix.com/

You can see it in action at: http://ov-oba.informationexperts.com/

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

You're right of course - telling anyone to go work at Microsoft is hitting
below the belt.  Brice's posts lean towards the abrasive and this one just
set me off.  My apologies.

Most of the new person questions on this list involve issues that could be
resolved easily if they could just see what is going on inside the code. 
Firebug helps, but having a simple debug function available to people who
don't understand why they need a plugin just to get a simple jquery
function working would be very useful.  How many times have you seen
questions about broken code that turns out to be a selector problem?  Most
of those folks are just reading the documentation on the site and aren't
even thinking about extending the core package yet.

It doesn't matter in the end.  pasting my debug function into the jquery.js
script solves my problem for the moment.  I had just hoped to help the new
folks not hit the same walls I did when I was getting started.


Karl Rudd wrote:
 
 Daemach I think you may have read a little too much harshness into
 Brice's reply. Brice may have needed to use a little clearer, not so
 open to being interperated as harsh.
 
 Brice is quite helpful usually so it would be out of character for him
 to beat someone down.
 
 We're all learning here, so let's try to keep things calm and civil.
 
 Your debug console idea is definately something that is useful and it
 would work quite well as a plugin (which is also what I believe Brice
 is saying).
 
 Karl Rudd
 
 On 3/13/07, Daemach [EMAIL PROTECTED] wrote:

 Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen
 on
 this list!

 And don't be an elitist prick - some people reviewing this framework are
 new
 to jQuery and some even to javascript programming itself.  If you can't
 say
 something nice, go work at Microsoft.


 Brice Burgess wrote:
 
  Daemach wrote:
  I would like to be able to dump the contents of the current selector
 to
  the
  console using $#myselector).debug() without loading a plugin.
  Something
  as simple as the following would work, though if you devs have some
 ideas
  on
  how to make it more useful I'm sure it would be welcomed, especially
 by
  new
  users:
 
jQuery.fn.debug = function() {
console.log(this);
return this;
}
 
  Long chains that include callbacks with anonymous functions make it
  difficult to use console.log($()).  Can this be added to the jQ
 codebase
  so
  it's always available?
 
  This is a ridiculous, not well thought out, and highly
  individual/personalized request. Of course this should be a plugin! All
  debuggers are plugins AFAIK -- or, at least compile time flags.
 Please
  keep the core lean, mean, and clean, and think thrice before bloating.
 
  ~ Brice
 
  ~ Brice
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context:
 http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9446525
 Sent from the JQuery mailing list archive at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9446792
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Alexandre Plennevaux
$(#jerk).css(text-decoration: line-through).after(needs a beer); 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: mardi 13 mars 2007 1:57
To: discuss@jquery.com
Subject: Re: [jQuery] Please add a basic debug function to the jQuery
core...


Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen on
this list!

And don't be an elitist prick - some people reviewing this framework are new
to jQuery and some even to javascript programming itself.  If you can't say
something nice, go work at Microsoft.


Brice Burgess wrote:
 
 Daemach wrote:
 I would like to be able to dump the contents of the current selector 
 to the console using $#myselector).debug() without loading a 
 plugin.
 Something
 as simple as the following would work, though if you devs have some 
 ideas on how to make it more useful I'm sure it would be welcomed, 
 especially by new
 users:

   jQuery.fn.debug = function() {
   console.log(this);   
   return this;
   }

 Long chains that include callbacks with anonymous functions make it 
 difficult to use console.log($()).  Can this be added to the jQ 
 codebase so it's always available?
   
 This is a ridiculous, not well thought out, and highly 
 individual/personalized request. Of course this should be a plugin! 
 All debuggers are plugins AFAIK -- or, at least compile time flags. 
 Please keep the core lean, mean, and clean, and think thrice before
bloating.
 
 ~ Brice
 
 ~ Brice
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

--
View this message in context:
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core..
.-tf3392275.html#a9446525
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.447 / Base de données virus: 268.18.8/718 - Date: 11/03/2007
9:27
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Rey Bango
Easy there tiger. Brice is one of the cool ones on here and I think he's 
just voicing his opinion in general. I didn't read it as anything 
personal against ya. :o)

Could everybody please just take a deep breath and re-read anything 
they're about to post? Lets stay cool with each other.  :o)

Rey

Daemach wrote:
 Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen on
 this list!
 
 And don't be an elitist prick - some people reviewing this framework are new
 to jQuery and some even to javascript programming itself.  If you can't say
 something nice, go work at Microsoft.
 
 
 Brice Burgess wrote:
 Daemach wrote:
 I would like to be able to dump the contents of the current selector to
 the
 console using $#myselector).debug() without loading a plugin. 
 Something
 as simple as the following would work, though if you devs have some ideas
 on
 how to make it more useful I'm sure it would be welcomed, especially by
 new
 users:

  jQuery.fn.debug = function() {
  console.log(this);   
  return this;
  }

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ codebase
 so
 it's always available?
   
 This is a ridiculous, not well thought out, and highly 
 individual/personalized request. Of course this should be a plugin! All 
 debuggers are plugins AFAIK -- or, at least compile time flags. Please 
 keep the core lean, mean, and clean, and think thrice before bloating.

 ~ Brice

 ~ Brice

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


 

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

 I just wanted to say I'm sorry for responding to your post like that.  It's
been a long day and calling my suggestion ridiculous just set me off.  I
would hate to have some new person get a response like that and turn them
off from jQuery forever.

Again, my apologies for what it's worth.


Brice Burgess wrote:
 
 Daemach wrote:
 I would like to be able to dump the contents of the current selector to
 the
 console using $#myselector).debug() without loading a plugin. 
 Something
 as simple as the following would work, though if you devs have some ideas
 on
 how to make it more useful I'm sure it would be welcomed, especially by
 new
 users:

   jQuery.fn.debug = function() {
   console.log(this);   
   return this;
   }

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ codebase
 so
 it's always available?
   
 This is a ridiculous, not well thought out, and highly 
 individual/personalized request. Of course this should be a plugin! All 
 debuggers are plugins AFAIK -- or, at least compile time flags. Please 
 keep the core lean, mean, and clean, and think thrice before bloating.
 
 ~ Brice
 
 ~ Brice
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9447069
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Daemach

*uncaps a beer*

You're all right, of course.  Frankly, I am ashamed that I sunk to that
level.  Having my suggestion called ridiculous just rubbed me the wrong
way.  Some requests are ridiculous of course, but I don't think it's good
practice to marginalize or belittle someone's ideas because you don't agree
with them - especially in a public forum.  This is the general mailing list
for jQuery which means new and old people alike are reading all of this.  

Everyone should feel like they can post an idea without being slammed.


Rey Bango-2 wrote:
 
 Easy there tiger. Brice is one of the cool ones on here and I think he's 
 just voicing his opinion in general. I didn't read it as anything 
 personal against ya. :o)
 
 Could everybody please just take a deep breath and re-read anything 
 they're about to post? Lets stay cool with each other.  :o)
 
 Rey
 
 Daemach wrote:
 Thanks for the beatdown Brice!  I'm glad you're the only jerk I've seen
 on
 this list!
 
 And don't be an elitist prick - some people reviewing this framework are
 new
 to jQuery and some even to javascript programming itself.  If you can't
 say
 something nice, go work at Microsoft.
 
 
 Brice Burgess wrote:
 Daemach wrote:
 I would like to be able to dump the contents of the current selector to
 the
 console using $#myselector).debug() without loading a plugin. 
 Something
 as simple as the following would work, though if you devs have some
 ideas
 on
 how to make it more useful I'm sure it would be welcomed, especially by
 new
 users:

 jQuery.fn.debug = function() {
 console.log(this);   
 return this;
 }

 Long chains that include callbacks with anonymous functions make it
 difficult to use console.log($()).  Can this be added to the jQ
 codebase
 so
 it's always available?
   
 This is a ridiculous, not well thought out, and highly 
 individual/personalized request. Of course this should be a plugin! All 
 debuggers are plugins AFAIK -- or, at least compile time flags. Please 
 keep the core lean, mean, and clean, and think thrice before bloating.

 ~ Brice

 ~ Brice

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


 
 
 -- 
 BrightLight Development, LLC.
 954-775- (o)
 954-600-2726 (c)
 [EMAIL PROTECTED]
 http://www.iambright.com
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-add-a-basic-debug-function-to-the-jQuery-core...-tf3392275.html#a9447125
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Please add a basic debug function to the jQuery core...

2007-03-12 Thread Rey Bango
One thing that I want to ensure that everyone understands is that the 
jQuery project is as much about community as it is about the library. 
Its important that we all respect each other and listen to ideas, 
suggestions and advice.

I hope to never see this community, that to date has been some accepting 
and welcoming, turn into a place where users, both new and experienced, 
fear to post simple questions or are derided for offering suggestions. 
jQuery has always been about exchanging ideas and finding cool ways to 
make your development life easier.

With that said, I would recommend that everyone seriously take a step 
back and relax.

Rey
jQuery Project Team

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/