Click to See Complete Forum and Search --> : drop-down pop up window


jemerson
09-16-2003, 11:32 AM
Is it possible to have a "form" inside of another form?
On our order form, I have a drop down menu that opens a new window to display images for customers to view. They close the window when finished and they are still on the order form page. The new window opens on the left hand side of the order form.
Here is the error I keep receiving:
'document.form.site.options.' is null or not an object.

I am having the most difficult time here. Can someone help by looking at my form and tell me what I am doing wrong.

http://www.partytimeprinting.com/party_pak_tableware.htm

The drop down menu is "Search Artwork by..."

Thanks in advance!!
Jessica

pyro
09-16-2003, 11:39 AM
First of all, no, you can not have a form inside of a form. That is invalid HTML.

Next, you could do it like this instead:

<select onchange="window.location.href=this.options[this.selectedIndex].value;">
<option value="http://www.infinitypages.com">Infinity Web Design</option>
<option value="http://www.webdevfaqs.com">Web Dev FAQs</option>
</select>

jemerson
09-16-2003, 11:45 AM
Thanks for your help....worked beautifully! However, is there a way that the new window can be resizeable or possibly scrollbars? It just is used to show up to 75 images in a table. But each page(category) has different images. CAn you help, I really appreciate it!

pyro
09-16-2003, 11:49 AM
Oops... Forgot you wanted a popup:

<select onchange="window.open(this.options[this.selectedIndex].value,'newwin','height=640,width=480,scrollbars=1,resizeable=1');">
<option value="http://www.infinitypages.com">Infinity Web Design</option>
<option value="http://www.webdevfaqs.com">Web Dev FAQs</option>
</select>and see http://www.webdevfaqs.com/javascript.php#popup for more info on new windows...

jemerson
09-16-2003, 12:03 PM
Thank you again! My headaches are over....just wish I would've known about the "form inside a form" mistake earlier.

Have a GREAT one!
Jessica

pyro
09-16-2003, 12:07 PM
You bet... I was happy to help... :)