Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-30-2010, 03:53 PM #1
- Join Date
- Jan 2009
- Thanked 0 Times in 0 Posts
how to pass dynamic variable to another div with onclick?
Any help is very much appreciated. Thank you!
<a href="#test" onClick="doSomething("<%=rsHeadline("article_id")%>")">try here...</a>
<%articleid = request.querystring("article_id") %>
<% Response.Write articleid %>
The article id is articleid</div>
Last edited by dmarmolejos; 08-30-2010 at 04:15 PM.
08-30-2010, 09:26 PM #2
Make up your mind: If the value coming from the DB as in rsHeadline("article_id") or from the querystring as in request.querystring("article_id")????
It can't come from both. Or I certainly wouldn't expect it to.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.