Skip to main content
Participant
December 28, 2006
Question

Help with a popup window displaying info from a record set

  • December 28, 2006
  • 2 replies
  • 504 views
Hi I am working on a Shopping cart web site I have set up my database and I have created my page to display items from the database the fields in my database table are auto_id, category, sub_catagory, manufacture, style, descripition, descripition2, price, image, image2, fc_id, link_id
What I am trying to do is to display this part of the info in one record set manufacture,style,descripition , image and price there will be a link from this page to display a popup and in that pop up I want to display manufacture,style,descripition2,Image2
basicly I want to now how to put a link in database so when all of the data is displayed on the page I want to click on a link from any record that opens a popup to display a larger image and a longer descripition of the product. and anything else I may need from that record

I hope this makes sense
Thanks for any help
Cheers
Dave
This topic has been closed for replies.

2 replies

Participant
February 28, 2016

Hi David,

I have been battling and Googling with this issue of

combining Asp Recordset Field Data Item Values with Javascript Popup Window

for the last 24 hours and have been greatly relieved to have finally come across

a reasonable solution to the issue you are describing.

I am now very hopeful indeed to see the light at the end of the tunnel...

Pity that one might Google for so long a period of time

while not coming across another battling person

dealing with (well, almost) a very similar coding issue.

Although this article is dated back to

Inspiring
January 2, 2007
Create the popup in the usual way and then modify the javascript by adding
whatever parameters are needed to call a recordset in the popup which the
correct information, and the particulr field holding the key value.

for example the simple popup creates a line like this

<a href="#"
onclick="MM_openBrWindow('Test.asp','','width=400,height=400')">Link</a>

if auto_id holds the value then the line would be modified to

<a href="#"
onclick="MM_openBrWindow('Test.asp?ID=<%recordset.fields.item("auto_ID").value%>','','width=400,height=400')">Link</a>

Then on the page being called simple create a recordset that will display
the information using a querystring as the filter.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"David Wright 61" <webforumsuser@macromedia.com> wrote in message
news:en0ne7$j9e$1@forums.macromedia.com...
> Hi I am working on a Shopping cart web site I have set up my database and
> I
> have created my page to display items from the database the fields in my
> database table are auto_id, category, sub_catagory, manufacture, style,
> descripition, descripition2, price, image, image2, fc_id, link_id
> What I am trying to do is to display this part of the info in one record
> set
> manufacture,style,descripition , image and price there will be a link from
> this
> page to display a popup and in that pop up I want to display
> manufacture,style,descripition2,Image2
> basicly I want to now how to put a link in database so when all of the
> data is
> displayed on the page I want to click on a link from any record that opens
> a
> popup to display a larger image and a longer descripition of the product.
> and
> anything else I may need from that record
>
> I hope this makes sense
> Thanks for any help
> Cheers
> Dave
>