buffy
Feb 22nd, 2009, 09:34 PM
Hi guys,
I have a site that works in Firefox but not IE, argh.
Two buttons, (1) opens a popup window with a larger image, (2) another adds the product to the cart....
In IE, the popup button does nothing, just presses down like normal. And the cart button shows the image saying something has been added, but really its all lies, as when you go to the basket its empty.
Okay, code time....
1) "View Larger Image" popup window button, works fine in Firefox, except the page title is images.php rather then the page title, but thats no biggie.
<form>
<input name="button" type="button" onClick="window.open('<?PHP echo "imagebig.php?productid=$productid"?>','Handle Bar Ends','width=485,height=340,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no ,resizable=no,left=200,top=50,screenX=200,screenY=50');return false" value="View Large Image">
</form>
2) Add to cart ...... refreshes the page, performs some php code adding the item to the order table. Again works in Firefox, but not IE.
<form name="<?php echo 'order'.$productid; ?>" method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
<input name="quantity" type="text" id="quantity4" value="1" size="4" maxlength="3">
<input name="submit" type="submit" value="Add to Cart">
<input type=hidden name=productid value=<?PHP echo $productid;?>>
</form>
Any help is appreciated!
I have a site that works in Firefox but not IE, argh.
Two buttons, (1) opens a popup window with a larger image, (2) another adds the product to the cart....
In IE, the popup button does nothing, just presses down like normal. And the cart button shows the image saying something has been added, but really its all lies, as when you go to the basket its empty.
Okay, code time....
1) "View Larger Image" popup window button, works fine in Firefox, except the page title is images.php rather then the page title, but thats no biggie.
<form>
<input name="button" type="button" onClick="window.open('<?PHP echo "imagebig.php?productid=$productid"?>','Handle Bar Ends','width=485,height=340,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no ,resizable=no,left=200,top=50,screenX=200,screenY=50');return false" value="View Large Image">
</form>
2) Add to cart ...... refreshes the page, performs some php code adding the item to the order table. Again works in Firefox, but not IE.
<form name="<?php echo 'order'.$productid; ?>" method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
<input name="quantity" type="text" id="quantity4" value="1" size="4" maxlength="3">
<input name="submit" type="submit" value="Add to Cart">
<input type=hidden name=productid value=<?PHP echo $productid;?>>
</form>
Any help is appreciated!