codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Iframes and Forms  singhan at 15:11 on Wednesday, February 16, 2005
 

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!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: ASP.NET web controls
•  netscape 6 browser problem
•  Re: Print .doc file from the website using System.Diagnostics.Process
•  Re: Print and print preview file on the website without using the File - Print on the IE
•  Re: JavaSript Problem In Mac Safari Browser
•  Re: DHTML div positionning Problem
•  Convert script to NS6 compatible - Please Help!
•  Re: Fullscreen code
•  Re: iframe targeting


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005