I don't think there is a way to detect this on the first request. I
guess you could fire off an ajax request and if it arrives at the
server, you know JS is turned on, so from the second request out you
can respond accordingly.

I think, however, that the if_javascript() combined with <noscript>
give you everything you need to degrade gracefully, even with complex
functionality. I've been using it on several occasions, no complaints.

Hope this helps.
Daniel

PS: By the way, that is an amazing site you have there. I'm loving the
look and feel of it.





On Jul 16, 5:48 am, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I have just got the star rater from Komodo [1] working with symfony's
> ajax helpers. In the book it suggests using a combination of the
> if_javascript() function and the <noscript> tag to degrade gracefully.
>
> I think I read somewhere that this is not foolproof and I was wondering
> if there was a symfony script/snippet to detect whether a browser is
> capable of processing ajax requests? Any other suggestions welcome too :)
>
> TIA,
>
> Tom
>
> [1]http://www.komodomedia.com/blog/2007/01/css-star-rating-redux/
> --
> Tom Haskins-Vaughan
> Temple Street Media: Design and Development for the Web
> [EMAIL PROTECTED] |www.templestreetmedia.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to