Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Data form LINKED text

Status
Not open for further replies.

JrClown

Technical User
Oct 18, 2000
393
US
Hello all.
I'm displaying data from an access database as a link and would like to know who to make display results for the "Linked" text when clicked.

X-) QUOTE OF THE DAY
Don't waste time telling people what you are doing or what you are going to do. Results have a way of informing the world.

<%
Jr Clown :eek:)
%>
 
I usually make it call some javascript function that opens a window and sends along a few parameters in the url so that the subsequent asp page knows what I am looking for and where I came from.
Code:
<a href=&quot;javascript:someFunction(<%response.write(dbVariable & &quot;,&quot; & anotherDBVariable)%>)&quot;>
So the resulting link would come out looking like:
Code:
<a href=&quot;javascript:someFunction(3,4)&quot;>

Then the function would look more or less like this:
Code:
function someFunction(val1, val2){
  urlString = &quot;somePage.asp?value1=&quot; + val1 + &quot;&&quot; + &quot;value2=&quot; + val2;
  window.open(urlString,'newPage');
}

I use that method often because in my line of work, I write report generators that our clients can use to &quot;drill down&quot; deeper and deeper into the data. I provide much of that functionality through just such a technique (usually building up some SQL String with the values).

good luck!:)
Paul Prewett
 

Thanks for your input Paul. I'll look into it. QUOTE OF THE DAY
Don't waste time telling people what you are doing or what you are going to do. Results have a way of informing the world.

<%
Jr Clown :eek:)
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top