...

View Full Version : More "Undefined" BS



lightnb
10-11-2008, 09:52 PM
How do I make this work:


HideElement([PagesArray[i]+'ManagerELF']);

I need to pass a variable to the function. The variable's name is the value of PagesArray[i] plus the string 'ManagerELF'.

So if PagesArray[i] = 'MyVariable', I want to pass the HideElement() function a variable named "MyVariableManagerELF".

lightnb
10-11-2008, 10:39 PM
Got it:

This seems to work:

HideElement(window[PagesArray[i]+'ManagerELF']);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum