[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-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 Marc Jansen
Robert James schrieb: On 7/19/07, *Klaus Hartl* [EMAIL PROTECTED] mailto:[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

[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?

[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 JavaScript