Thursday, December 10, 2009

Re: Testing for Ajax

Thank you, but that isn't working for me. I have a link that retrieves
some data and populates a div with an element. With Javascript
disabled I just get the contents of the element in an otherwise blank
screen. What I want to do is something like this:

If (javascript is enabled):
show this link
else
show another link
end if

So what I am looking for is a nifty little piece of code to do the "if
javascript is enabled" bit.

On Dec 10, 5:27 pm, "Dr. Loboto" <drlob...@gmail.com> wrote:
> AJAX links and forms in Cake AJAX helper has fallback. If JS is not
> enabled links/forms will work as normal ones.
>
> On Dec 10, 6:58 pm, Jeremy Burns <jeremybu...@me.com> wrote:
>
>
>
> > I want to use the Ajax helper when Javascript is enabled, but revert
> > to the plain old ordinary html helper when it is not. How can I do a
> > simple test to see if Javascript is enabled?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate