George,
   yep, I had seen this example on conditionally including stylesheets.
However, I was wondering how to do the same w/ javascript...

Cheers,

Alex K

On Wed, Jul 18, 2012 at 12:23 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> You could do something like this,
>
>     @Inject
>     @Path("context:css/ie-only.css")
>     private Asset ieOnlyStylesheet;
>
>     // add an IE-only style sheet if browser is IE 7 || IE 8
>     void afterRender() {
>         this.js.importStylesheet(
>             new StylesheetLink(ieOnlyStylesheet,
>                 new StylesheetOptions(null).withCondition("(IE 7)|(IE 8)")
>             )
>         );
>     }
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Conditionally-IE-including-javascript-tp5714506p5714568.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to