Link to home
Start Free TrialLog in
Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on

Get Pop-Up Or Div Info Box From JQuery DataTable Cell in ASP

I have a page here that has links on the first name of each finisher.  I want to have that link show an info box of that persons complete race data when clicked on.

I have a similar situation here on the old non-jquery/datatable results page that did exactly what I want it to do but it gathers all the information from all finishers in advance.  Further, since it is not a jquery page I don't know how to get the link to pop up.

Thanks to help on this forum, I have created a link (IndRslts(2, i) = "<a href='javascript:pop(my_data.asp,400,600)' class='runnerName'>" & Replace(IndRslts(2, i), """", "") & "</a>") in my server code but I don't know how to make it display the page when the name is clicked on.

I would like to avoid an alert-type message, but have a div that opened like on the old results page.  Just not sure how to process all of this and how to grab the info from just the link clicked on.

I hope this makes sense.  Thanks to this forum, I am learning a lot and just about have this page where I want it.
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

but have a div that opened like on the old results page

The function pop, on both pages, is defined as
function pop(url, x, y){
	mywindow=window.open(url,'','width='+x+',height='+y+',scrollbars=yes');
	mywindow.focus();
}

Open in new window


This is not a div popup - it opens a new window.

Can you clarify what you want to do here?

Both pages seem to open a new window - I am correct in assuming you want to open a <div> popup instead?
Avatar of Bob Schneider

ASKER

Yes that is what I want.  Thanks for clarifying what is actually going on...window v pop-up.
SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you.  The dialog widget looks like exactly what I am looking for.  The next bridge to cross is how to get my asp data that will populate it and then get it to appear "on click"?  Can I build a call to an asp function that executes and pulls the data and then populates the dialog with it?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very, very much!
You are most welcome.