How to Create multiple objects in client side JavaScript with a counter 
Author Message
 How to Create multiple objects in client side JavaScript with a counter

I would like to create multiple objects  using such a function

function createobjects(i)
var eval("obj" + i)  =  new Object;
eval("obj" + 1).property1= " ";
eval("obj" + 1).property2= " ";

//and returns the object

Quote:
}

so by the end of a function call say:
createobjects(1)
an object  obj1 will be created and returned

createobjects(2)
an object  obj2 will be created and returned

thanks

--
Raed Rafeh
Logiblox Enterprise Solutions
2285 St-mathieu  #1806
H3H 2J7
Tel: 514-961-1757



Sat, 07 May 2005 12:02:48 GMT  
 How to Create multiple objects in client side JavaScript with a counter
and your question is???? I'm justy not seeing what you're asking (or why
it's in a VB group)

________________________________________
I got bored with my old signature,
so I changed it

Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Sat, 07 May 2005 13:10:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Access activex object using client-side javascript

2. pass server side vbscript to client side javascript

3. Calling client-side javascript function from server-side vbscript

4. Create printer object in Jscript or VBScript on IE client side scrpting

5. VBScript can't create client-side object

6. Can't create client-side ADO command object

7. server-side data into client-side object

8. breakpoint in client side javascript, aspx/webform page

9. Javascript : Save to a file (client-side)

10. Mixed client side VBScript & Javascript not working

11. sending variants from VBscript to JavaScript (client side)

12. Client Side Scripting - VBScript or JavaScript?

 

 
Powered by phpBB® Forum Software