Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    More "Undefined" BS

    How do I make this work:

    PHP Code:
    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".

  • #2
    New Coder
    Join Date
    Sep 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Got it:

    This seems to work:

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •