...

View Full Version : Proper way to pass vars, having issue w/ quotes (I think)



RexxCrow
09-05-2007, 03:54 AM
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.


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

RexxCrow
09-05-2007, 05:02 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum