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 3 of 3

Thread: string

  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    388
    Thanks
    73
    Thanked 0 Times in 0 Posts

    string

    I'm trying to attach "document.getElementID[sid]" to the "i" GET variable. What's the correct way? Below is what I have and it's wrong I know

    Code:
    onClick="showHistory('<?PHP echo FILENAME_FIELD_HISTORY; ?>?i=+document.getElementID[sid]+&f=address2','History')";>Address</a>

  • #2
    Regular Coder ninnypants's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    504
    Thanks
    10
    Thanked 47 Times in 47 Posts
    what exactly are you trying to accomplish with this

  • #3
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    I'm not totally sure what you're trying to do, but try to add highlighted:
    Code:
    onClick="showHistory('<?PHP echo FILENAME_FIELD_HISTORY; ?>?i='+document.getElementID[sid]+'&f=address2','History')";>Address</a>
    Hope that helps.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

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