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
    Regular Coder RexxCrow's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    275
    Thanks
    6
    Thanked 2 Times in 2 Posts

    Proper way to pass vars, having issue w/ quotes (I think)

    I am trying to make a makeshift Google/YouTube embedded viewer and am not sure how to pass the vars, I have tried several ways changing the quotes around and it only showing the name of the var, here is where I am at currently:

    I appear to be able to pass the title and the embed coding but am having an issue w/ passing a variable to the anchor, which I am wanting to use so the view can quickly return to the top of their selected viewing category.
    Code:
    i.e.
    <tr><td><a class="foot" href="#'+swap+'" title="Click to return to your selected Category.">Return to '+swap+'</a></td></tr>
    I am thinking that the only way to do this is innerHTML, if so what is the format to reach and modify/update the href=? I can figure out the text display portion that is easy, heh! TIA

  • #2
    Regular Coder RexxCrow's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    275
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Ok, I figured out the 2 issues I was having, that hard one turned out to be the easy one and the easy one turned out to take 5 more minutes then I originally surmised, (it was just .href (lucky guess) ~eh!) LOL


  •  

    Posting Permissions

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