OK, I have a problem I am trying to solve without much luck. I have a page when a user can choose their contact info which will then take them to another selection page. I want to add that contact id to their existing cookie, but I have the contact id in a vbscript variable. My thought was to do an onclick event on the a href, but that means I have to pass the contact id in the function call, correct? But the value I need to pass is in a vbscript variable thru ado. So, is there a way I can use the vbscript variable in javascript, or is there another way to accomplish my goal?
I was thinking
where conid is dimmed and a value assigned to it earlier
What I am trying to accomplish is assigning the chosen contact id to their existing cookie BEFORE they reach ministry.asp because there are two ways to get to ministry.asp and the other method places the contact id in their cookie dictionary before they get there.
So, anybody got any great ideas on solving this dilemma?
wb
I was thinking
Code:
<a href="ministry.asp?conid=<%=conid %>" onclick="addcontactid(conid)">
where conid is dimmed and a value assigned to it earlier
Code:
<% dim conid : conid = rs("contact_id")%>
What I am trying to accomplish is assigning the chosen contact id to their existing cookie BEFORE they reach ministry.asp because there are two ways to get to ministry.asp and the other method places the contact id in their cookie dictionary before they get there.
So, anybody got any great ideas on solving this dilemma?
wb