Yes that's precisely the way we've done it, creating an 'IfIE' component as 
suggested on 

another mailing list thread (here's an archive link 
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Conditionally-IE-including-javascript-td5714506.html#a5715290
 ) 


Thanks! 
Peter 

----- Original Message -----

From: "Kalle Korhonen" <kalle.o.korho...@gmail.com> 
To: "Tapestry users" <users@tapestry.apache.org> 
Sent: Wednesday, September 4, 2013 9:12:15 PM 
Subject: Re: [5.4] IE8, RequireJS Error: required: "JSON" is Undefined 

The typical way to include the shiv is with the conditional comments that 
are IE only (http://webdesign.about.com/cs/htmltags/a/aacommentsie.htm). 

Kalle 


On Wed, Sep 4, 2013 at 10:46 AM, Howard Lewis Ship <hls...@gmail.com> wrote: 

> This should probably go into the main code as well; possibly with a 
> compatibility code to make it easy to turn off for users that don't need 
> IE8 support (i.e., so as to streamline their apps in modern browsers). 
> 
> 
> On Wed, Sep 4, 2013 at 8:00 AM, Peter Hvass <p.hv...@albourne.com> wrote: 
> 
> > Hello, 
> > 
> > 
> > Just a heads up in case you're playing with 5.4 and running into errors 
> > like this; we had to conditionally include 
> > an implementation of various JSON utilities to get IE8 working. 
> > 
> > 
> > We have also added respond.js and html5shiv to keep bootstrap 3 happy. 
> > 
> > 
> > We used; http://bestiejs.github.io/json3/ 
> > 
> > 
> > Thanks, 
> > Peter 
> 
> 
> 
> 
> -- 
> Howard M. Lewis Ship 
> 
> Creator of Apache Tapestry 
> 
> The source for Tapestry training, mentoring and support. Contact me to 
> learn how I can get you up and productive in Tapestry fast! 
> 
> (971) 678-5210 
> http://howardlewisship.com 
> 

Reply via email to