On Mon, Nov 12, 2012 at 5:10 PM, Corbin, James <jcor...@iqnavigator.com>wrote:

> Thanks, I have already.  I know how to detect HTML5 features using
> javascript, just wondered what is the best way to do so from Wicket code.
> Given your suggestion, how could I use Modernizr to set browser state
> indicating, for example, that HTML 5 local storage is in fact supported.
> I'm just not sure how to plug something like this into the initialization
> of the web application.  It would be nice if the gather extended browser
> info support in Wicket supported these properties.
>
> I'm just curious how others have managed to answer the question, "Does my
> browser and version support HTML 5 Local Storage?", from Wicket code.
>
>
The best is to not answer this question at all.
Use a JS library that cares about the persistence at the client side for
you. So you use it as abstraction layer.


> Thanks,
> J.D.
>
>
>
>
>
>
>
> On 11/12/12 7:59 AM, "Phillips, David" <david.phill...@usaa.com> wrote:
>
> >I would suggest taking a look at Modernizr (http://modernizr.com/) for
> >feature detection.
> >
> >Thanks,
> >-David Phillips - USAA
> >
> >-----Original Message-----
> >From: Corbin, James [mailto:jcor...@iqnavigator.com]
> >Sent: Monday, November 12, 2012 8:40 AM
> >To: users@wicket.apache.org
> >Subject: EXTERNAL: Detecting HTML 5 Features in Wicket
> >
> >Is there any built in support for detecting HTML 5 browser features like
> >Web Storage?
> >
> >If not, what is  the recommended approach for doing so?
> >
> >I'm looking for a way to detect support for Web (e.g. Local) Storage, so
> >in cases where the browser's do not support it (e.g., IE7), I can use
> >cookies or some other mechanism instead.
> >
> >Thanks,
> >
> >J.D.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to