hmm, well, What I want is to provide user a consistent webpage, even if they don't have JS support (Progressive enhancement). Now I use AJAX and those controllers that are used by AJAX functions don't have a view. So if there is no JS they get displayed as plain page with only data no styling (It works because I designed the <A> links usually and does AJAX thing via JS).
What I want is 1)IF there is JS support do things as it's now (via AJAX) 2)IF client doesn't have JS support, I have to provide same styled website. (Currently there is no view, so if there is no JS (and if I can detect it) I can call another function, which has a view. Arun On Jan 6, 2:17 pm, moriarty <[email protected]> wrote: > Depending on what you wanna do a simple <noscript>[1] on your html > would be enough. > > [1]http://www.w3schools.com/TAGS/tag_noscript.asp > > On 5 jan, 16:01, Thadeus Burgess <[email protected]> wrote: > > > > > no. > > > Well... the only way to verify, is if you have an AJAX callback to the > > server.... if you receive the callback, they have javascript... if you > > don't receive one... then they dont. > > > def receive_if_js(): > > session.has_javascript = True > > > def index(): > > if session.has_javascript: > > ... > > > {{layout.html}} > > > ajax('receive_if_js') > > > -Thadeus > > > On Tue, Jan 5, 2010 at 11:25 AM, K.R.Arun <[email protected]> wrote: > > > Is it possible to know whether client support Java Script or not from > > > the server side? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group.> To post to this group, send email > > > [email protected].> To unsubscribe from this group, send email > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/web2py?hl=en.
-- You received this message because you are subscribed to the Google Groups "web2py-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/web2py?hl=en.

