Hello!
I've been working for some time now on a shopping cart for a small store here in Malmoe/Sweden. I've solved almost everything now but I have some minor bugs. One that really bothers me is this.
I've made a small function in java script that looks like this:
<script language="JavaScript" type="text/javascript">
<!--
function updateframe()
{
parent.frames[3].location.href="display_down.php";
}
//-->
The button on the mainpage looks like this:
<input type="submit" value="add to cart!" name="button" onClick="javascript:updateframe()">
The problem is that it doesn't update the display_down frame directly. I have to press the button two or three times before anything happens...
I know this is a java script question but I hope there are someone here that masters that too.
Hope this all makes sense...please just ask me otherwise...
Best regards
/Emil Hansson