ERXIEConditionalComment Class Reference
Inherits
er::extensions::components::ERXStatelessComponent.
List of all members.
Detailed Description
Conditional comments make it easy for developers to take advantage of the enhanced features offered by Microsoft Internet Explorer 5 and later versions, while writing pages that downgrade gracefully in less-capable browsers or display correctly in browsers other than Windows Internet Explorer.
From http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx
ERXIEConditionalComment is designed to generate IE conditional comments. It supports all conditional comment styles except combination sub-expressions and explicit true/false conditionals.
Example Usage
In your HTML file an IE Conditional would look something like:
<webobject name = "IsNotIE" >Content rendered by all browsers except IE version 5+</webobject>
<webobject name = "IsNotIE6" >Content only rendered by IE. Includes all versions of IE greater than IE5, not including IE6</webobject>
<webobject name = "IsGTEIE7" >Content only rendered by IE 7 and above</webobject>
In your WOD file, those conditionals would be bound like:
IsNotIE: ERXIEConditionalComment { negate = true; }
IsNotIE6: ERXIEConditionalComment { negate = true; versionString = "6"; }
IsGTEIE7: ERXIEConditionalComment { isGreaterThanEqual = true; versionString = "7"; }
- Author:
- Ramsey Gurley isGreaterThan boolean binding evaluates the version of IE against the versionString binding isGreaterThanEqual boolean binding evaluates the version of IE against the versionString binding isLessThan boolean binding evaluates the version of IE against the versionString binding isLessThanEqual boolean binding evaluates the version of IE against the versionString binding negate boolean binding indicates the inverse of the version evaluation if versionString binding is bound. Otherwise, this binding escapes the IE conditional comments so that all browser except IE will render the component contents. versionString the version of IE being targeted. If all versions of IE are targeted, leave versionString unbound. If all browser except IE are targeted, leave versionString unbound and bind negate.
Constructor & Destructor Documentation
The documentation for this class was generated from the following file: