Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get all variables?

Status
Not open for further replies.

shmmeee

Programmer
Apr 17, 2001
104
GB
This might be a stupid question, but is it possible to get all of the variables available on a page? What I mean is, is there something like the array of images, links etc that you can get access to that tell you all of the javaScript variables on a page?
I hope that makes sense.
TIA,
Iain
 
I'm don't think there is one.

What is it that you are that you are doing that this will help you with?
- tleish
 
I'm customizing a piece of groupware by Lotus called QuickPlace. It publishes documents on an intranet, anyway it stores all kinds of information (user name, title etc.) in JavaScript variables that are created by machine written JavaScript (all on one line, really weird names). The documentation for this is absolutley awful and I want to know what I can access with JavaScript and what I can't.
I was kind hoping there was something that'd tell me but it seems instead I'm gonna have to spend hours wading through this indecipherable code... :-(
 
hi guyz
>>shmmeee
i kno that u're able 2 do smth like this:
function aaa(){
for (obj in window) {alert(obj)}}
onload=aaa


may be the solution somewhere around there??

regards, vic
 
Is the Javascript variables you are trying to access Client side or server side?
- tleish
 
Vituz:- Can you explain your code some more?

Tleish:- They're client side
 
hi shmmeee, had a good weekend? i have had a great one!! sun is shinin! water is freshy! wooo! B-)
well, lets get closer 2 our subject:
well, usin for (obj in window) {do smth} u can get access 2 every object/property in window object (e.g. opener, clientinformation, defaultStatus, document, etc. - check it urself..) & i just thought: if u can get variable like this:
var variable='hush!!!'
alert(window.variable)

so why not 2 try 2 get'em all in those loop?(
for (ii in window){alert(ii)}
) & then get [*somehow*, its the other question] the one[or more] that u need 2 get acces 2..

anyway, looks like this is a wrong way, 'coz i just checked it - it shows only standart, but not user-defined properties/objects, but the idea was good, huh?

i still think that there is solution, & it is not so far, lets keep on diggin 2getha!

regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top