robocop
07-29-2003, 09:00 PM
Hey there to you all...i have a simple, yet complex question to rack your minds :)
i have a page that has a product on it, but that product has like 30 patterns, and more could be added/deleted/modified later. so im instantly thinkin that ill need to set up a database like this:
+----+-------------------+-----------------------+----------+
+ ID | ItemName | ImgLocation | Active |
+----+-------------------+-----------------------+----------+
+ 1 | FlamePattern | /images/fire.jpg | Yes |
+ 2 | WaterPattern | /images/water.gif | No |
+----+-------------------+-----------------------+----------+
then, i want to make a popup window that basically writes out the images of the ACTIVE items to the page so that the customer can click on them to select the pattern instead of looking at a 303 item drop down menu. im thinkin that ill just have a javaScript function set up to just fill in a form field with the "ItemName" variable...
now...is this even possible? and if so...does anyone know off the top of their head what the code woudl look like? im new to ASP (usually develop in ColdFusion)....and we have to work on an ASP server for this one.......
i thank you all so much in advance!
kc
i have a page that has a product on it, but that product has like 30 patterns, and more could be added/deleted/modified later. so im instantly thinkin that ill need to set up a database like this:
+----+-------------------+-----------------------+----------+
+ ID | ItemName | ImgLocation | Active |
+----+-------------------+-----------------------+----------+
+ 1 | FlamePattern | /images/fire.jpg | Yes |
+ 2 | WaterPattern | /images/water.gif | No |
+----+-------------------+-----------------------+----------+
then, i want to make a popup window that basically writes out the images of the ACTIVE items to the page so that the customer can click on them to select the pattern instead of looking at a 303 item drop down menu. im thinkin that ill just have a javaScript function set up to just fill in a form field with the "ItemName" variable...
now...is this even possible? and if so...does anyone know off the top of their head what the code woudl look like? im new to ASP (usually develop in ColdFusion)....and we have to work on an ASP server for this one.......
i thank you all so much in advance!
kc