![]() |
A tiny Javascript help
I need a way to view all varibles even if I dont know the name of each one in Javascript.
Something like var_dump in php. |
Code:
function var_dump(obj) { |
Quote:
I get "Type: object Value: [object] ". |
That's a standard php var_dump simulator for javascript that can be found a million places on the net. It simulates var dump which does not give you all variable values. Only the one you use the function on.
|
Quote:
|
Are you trying to find all objects are see if a particular object is defined?
|
Trying to see all objects to a varible.
|
I'm not sure I understand what it is you want to do.
|
I have 'this.****' I want to find out what everything that is in it and named.
|
Then just use the code above.
var_dump(this.varname); |
All times are GMT. The time now is 11:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|