faeryfyrre
Programmer
Hi, I've got a javascript issue that i can't seem to overcome. I have a page that works fine in Firefox but i can't get it working in IE6. Annoying thing is no error is actually thrown, the form just does not submit.
If anyone can spot the problem, I'll love you long time.
Alec Doughty
Doughty Consulting P/L
"Life's a competition. Play hard, but play fair"
If anyone can spot the problem, I'll love you long time.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" type="text/javascript">
function submitPriceSearch(fProductID,fPostCode,fZoom){
var frm = document.getElementById("frmPriceSearch");
frm["ProductID"].value = fProductID;
frm["postCode"].value = fPostCode;
frm["zoom"].value = fZoom;
frm.submit();
}
</script>
</head>
<body>
<form name="priceSearch" id="frmPriceSearch" action="index.cfm?engine=search.price" method="post" >
<!--- <input type="text" name="product" value="">product:<br /> --->
<input type="text" name="postCode" value="">postCode:<br />
<input type="text" name="zoom" value="">zoom:<br />
<input type="text" name="ProductID" value="">product ID:<br />
<!--- <input type="text" name="package" value="">package:<br /> --->
<input name="Submit" type="SUBMIT" class="formButton" value="SEARCH">
</form>
<br>
<a href="javascript:void(0);" onclick="submitPriceSearch('152','4000','0')">Go</a>
</body>
</html>
Alec Doughty
Doughty Consulting P/L
"Life's a competition. Play hard, but play fair"