[jQuery] Re: Listing methods of an object

2007-07-19 Thread Marc Jansen
Robert James schrieb: On 7/19/07, *Klaus Hartl* <[EMAIL PROTECTED] > wrote: Robert James wrote: > > > Is there a way to list all the methods that a particular JavaScript > object has? Or is there a tool that can do this? Speaking of tools,

[jQuery] Re: Listing methods of an object

2007-07-19 Thread Robert James
On 7/19/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Robert James wrote: > > > Is there a way to list all the methods that a particular JavaScript > object has? Or is there a tool that can do this? Speaking of tools, I highly recommend the Firebug extension for Firefox, truly essential for web d

[jQuery] Re: Listing methods of an object

2007-07-19 Thread Klaus Hartl
Robert James wrote: Is there a way to list all the methods that a particular JavaScript object has? Or is there a tool that can do this? Speaking of tools, I highly recommend the Firebug extension for Firefox, truly essential for web development. You could easily log your object into the

[jQuery] Re: Listing methods of an object

2007-07-19 Thread Rob Desbois
Sorry, and the source code for the function can be obtained with alert(j[x]). In this code (and that below) 'j' is the javascript object. --rob On 7/19/07, Rob Desbois <[EMAIL PROTECTED]> wrote: Robert, Try this: > for (var x in j) { >if (typeof j[x] == "function") > alert(x); > }

[jQuery] Re: Listing methods of an object

2007-07-19 Thread Rob Desbois
Robert, Try this: for (var x in j) { if (typeof j[x] == "function") alert(x); } --rob On 7/19/07, S. Robert James <[EMAIL PROTECTED]> wrote: Yes - what JS code allows it to see the list of all methods (and their source code!)? Jack Killpatrick wrote: > Something like this? > >

[jQuery] Re: Listing methods of an object

2007-07-18 Thread S. Robert James
Yes - what JS code allows it to see the list of all methods (and their source code!)? Jack Killpatrick wrote: > Something like this? > > http://www.netgrow.com.au/files/javascript_dump.cfm > > - Jack > > Robert James wrote: > > > > > > Is there a way to list all the methods that a particular Java

[jQuery] Re: Listing methods of an object

2007-07-18 Thread Jack Killpatrick
Something like this? http://www.netgrow.com.au/files/javascript_dump.cfm - Jack Robert James wrote: Is there a way to list all the methods that a particular JavaScript object has? Or is there a tool that can do this?