If your variable is global, as in a direct property of the window, you
can access your variable by using square brackets.

var myObject = { something : "else" };

alert(window["myObject"].something);



On Oct 13, 2:24 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> JavaScript provides the eval() function for this.  Google "javascript
> eval" to find some references.
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
>
> On Oct 13, 1:09 am, Charles <[EMAIL PROTECTED]> wrote:
>
> > Is there any possible way with Prototype to parse the content of a
> > string in reference to an object name.
>
> > like "objectname".getParam();
>
> > is there any possible way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to