Check out the wiki:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/HTMLHelperProperty#SupportforIEConditionals

We support IE conditionals for both CSS and JS (the addJavascript() section just references the addStylesheet() section since the options works the same). In your case, the example you gave would be:

<cfset getProperty("html").addJavascript("jquery.flot.min", "head|inline", "all") />

Or if using the custom tag:

<view:script src="jquery.flot.min" forIEVersion="all" />

Best,
.Peter

jlcox said the following on 11/01/10 08:58:
I'm using a jQuery plugin that is only necessary to be included for
IE, so the script declaration is

<!--[if IE]><script language="javascript" type="text/javascript"
src="scripts/excanvas.min.js"></script><![endif]-->

I can include the main file like this with the HTMLHelperProperty

<cfset getProperty("html").addJavascript("jquery.flot.min") />

But don't really see how to do the conditional include. Any thoughts
or best practices?

-- 
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

Reply via email to