On 11/20/11 8:00 AM, Stef Mientki wrote:
> hello,
>
> I'm not sure if this might add something usefull to PyJamas
>
> http://www.modernizr.com/
I think it would! I used modernizr recently to test whether a user's
browser can play .wav files with the HTML5 audio tag, and had to
integrate it in my pyjamas code by embedding javascript code directly,
like so:
#############################
from __pyjamas__ import JS
from __pyjamas__ import jsimport
jsimport("modernizr.js")
...
goodbrowser = JS("""Modernizr.audio.wav;""")
#############################
where goodbrowser gets a string value "","probably", or "definitely". It
would be neat if one would not have to take the route through
javascript. Maybe there is already one that I'm not aware of?
Cheers,
judith
>
> cheers,
> Stef
>
--
Judith Degen
Brain and Cognitive Sciences
University of Rochester
Meliora Hall
Rochester, NY 14627-0268
USA
Phone: (585) 276-4812
Email: [email protected] <mailto:[email protected]>