Webmastersite.net
Register Log In

Internet Explorer error

Title Internet Explorer error
Description object expected ')' : javascriptheader
Message Text 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.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sparkalina
Views 445 views. Averaging 0 views per day.
Similar Topics
Submission Date Jan 07, 2009 - 12:08 PM