HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Iframes and Forms
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
singhan



Joined: 15 Feb 2005
Posts: 2

Posted: Wed Feb 16, 2005 7:21 am     Iframes and Forms  

Ok...I am having another problem with my iframes. I have a form (jump menu) in my iframe with a button-when clicked it SHOULD go to a new page or parent but instead it loads the new page into the iframe. Again I don't know if its my onclick or my javascript.

Here's the button code:
onClick="location=window.document.form1.menu.options[window.document.form1.menu.selectedIndex].value;" value="Buy">

and JS:
var merchantid_value=#####; // merchant id number
var productid_value=0; // a default changed when you enter a product id

function addItem(productid_value) {
if (!productid_value>0) {
productid_value=0; // If you forget to add the productid_value in your button code, the button will be the same as view cart.

}
window.location='http://www.profcs.com/app/netcart.asp?merchantid='+merchantid_value+'&productid='+productid_value;
}

Thanks!
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> HTML Frame
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group