SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Constant problem in IE
-
May 3, 2008, 09:28 #1
- Join Date
- Aug 2005
- Location
- Lithuania, Europe
- Posts
- 295
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Constant problem in IE
I've run into a problem with constants in IE:
Code JavaScript:const MODAL_OVERLAY_OPACITY = 0.6; // ... function initServiceTermsButton() { new Control.Modal('service-terms', {width: 480, height: 640, opacity: MODAL_OVERLAY_OPACITY}); }
Any ideas what I may be doing wrong, or is this yet another IE bug?
-
May 3, 2008, 16:22 #2
- Join Date
- Jan 2007
- Location
- Christchurch, New Zealand
- Posts
- 14,729
- Mentioned
- 104 Post(s)
- Tagged
- 4 Thread(s)
IE provides only JavaScript 1.3 support.
The CONST statement is a feature from JavaScript 1.5Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
-
May 3, 2008, 23:46 #3
- Join Date
- Aug 2005
- Location
- Lithuania, Europe
- Posts
- 295
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
All right, thanks for informing me.
-
May 4, 2008, 01:55 #4
- Join Date
- Jan 2007
- Location
- Christchurch, New Zealand
- Posts
- 14,729
- Mentioned
- 104 Post(s)
- Tagged
- 4 Thread(s)
That's alright.
Mozilla keeps a good reference to javascript. The one about the const statement is at:
http://developer.mozilla.org/en/docs...atements:const
And a simple test is all it takes to discover what version of javascript a certain browser supports.
http://forums.microsoft.com/MSDN/Sho...PostID=2870479Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks