OZONE Asylum
Forums
DHTML/Javascript
Javascript - string as variable name?
This page's ID:
32042
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok, well, removing the 'var' accomplished what I need for the moment. I have no idea what, if any, the implications of doing so are... ;) For reference, I am using a javascript charting library (highcharts), and want to allow the user to select series to add/remove from the chart using a row of check boxes. The variable name containing the data for each series, the id of the series once added to the chart, and the id of the check box are all the same. So I wanted to be able to use the id of the check box to tell the script which dataset to add or remove... A dummy example can be found here: http://jsfiddle.net/8tjuU/3/ thanks
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »