I am getting an object expected ')' error on IE 7 and after debugging I found the culprit is somewhere in here:
function updatestate(country)
{
if (country.value == {DEFAULTCOUNTRY})
{
document.getElementById('americanstate').style.display = "block";
document.getElementById('foreignstate').style.display = "none";
}
else
{
document.getElementById('americanstate').style.display = "none";
document.getElementById('foreignstate').style.display = "block";
}
}
The debugger that ie has seems to be pointing here:
document.getElementById('americanstate').style.display = "block";
document.getElementById('foreignstate').style.display = "none";
but I can't be sure.
I don't use the country field so I've temporarily removed it to get rid of the error.
-----------------
onunload="GUnload()" for the google maps also causes an ie script error if it is shown on any page that doesn't
have a map, but I can fix that with a conditional.
|