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?
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);
}
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
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?
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
5 matches
Mail list logo