![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveuse string to get access to an object
From: <andy_w_irvine@hotmail.com>
Date: Wed Feb 01 2006 - 20:14:49 CET
Hi,
Apologies if this has been asked elsewhere, I did search but expect I
I want to be able to use a string variable called objectName
function courseObject(courseName,sectionX,sectionY,layer){
this.updateLocation=updateLocation;
+ simple methods
objectName gets its value from the following section(comes from a drag
There is an object created for each element of the drag & drop
objectName.updateLocation(section,day)
But as objectName is a string rather than a reference to the object it
|