It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Dynamic scripts

Dynamic scripts

Postby asafush on Tue Aug 23, 2011 6:55 am

Hello everyone,

recently I encountered the following problem:
I'm trying to access a specific object from the 'Window' object.
for example:
I'm trying to invoke:
var obj=window.control0
This should return me a javascript object.

my problem is that the controlId ('control0' in this case) is known only on run time.
Assuming i have the controlId (in a primitive string), how can i build a dynamic statement to access the desired control from window object?

Hope I was enough clear...
Thank's for helping,
:)
Asaf.
asafush
 
Posts: 1
Joined: Tue Aug 23, 2011 6:39 am

Who is online

Users browsing this forum: No registered users and 4 guests