Forums

This topic is locked

Javascript pop-up window & Go to Detail Page?

Posted 04 Mar 2003 18:43:44
1
has voted
04 Mar 2003 18:43:44 jack nimble posted:
How do I create a Go to Detail Page that opens in a javascript pop-up window? I want to do this so I can make the window small.

Replies

Replied 04 Mar 2003 19:44:07
04 Mar 2003 19:44:07 Jeremy Conn replied:
A simple way would be this:

1.) Create your 'detail page' that has its recordset filtered by an incoming passed ID through the URL.
2.) On your mainpage, instead of using the 'Go To Detail Page' behaviour, simply use whatever javascript open window behavior you prefer... then, in the spot where you are pointing to your 'detail page' in the javascript, simply add the ID to the end of the address, with the code to pull that records ID into the end:

ADDED ITEMS IN RED
'detail_page.asp<font color=red>?ID=&lt;% rsRecordset.Fields.Item("ID".Value %&gt;</font id=red>'

Depending on your unique setup, you might have to tweak this, but it should get you started in the right direction.

(DWMX|IIS5|Access2K|XP|ASP/VB)
*Connman21*
www.conncreativemedia.com
Replied 04 Mar 2003 20:26:11
04 Mar 2003 20:26:11 jack nimble replied:
connman21,

Thanks for the reply and detailed instructions, but your code didn't work for me. I had to insert parethesis () in the code:

?ID=&lt;% (rsRecordset.Fields.Item("ID".Value) %&gt;

It works good now.
Replied 05 Mar 2003 01:15:22
05 Mar 2003 01:15:22 Jeremy Conn replied:
Oops, forgot those as I did that all from memory... glad it is working now.

(DWMX|IIS5|Access2K|XP|ASP/VB)
*Connman21*
www.conncreativemedia.com

Reply to this topic