Thursday, July 17, 2008

IE error: Expected identifier, string or number

Are you facing with the error "Expected identifier, string or number" in Internet Explorer?
Although it works in Firefox.

Here is the fix for this.

Fix

Look for javascript Object in your with Object elements seperated by commas. Something like
new validateRange. = {
min : 1, // value is not less than this number
max : 1440 ,// value is not more than this number
}

Remove the extra comma(,) before closing braces of validateRange and refresh. After removal..it looks as below
new validateRange. = {
min : 1, // value is not less than this number
max : 1440 // value is not more than this number
}

No comments:

Chihealth - One stop Preventive Healthcare