[Seaside] jQuery cancel default action
Sean Allen
sean at monkeysnatchbanana.com
Mon Aug 16 19:48:38 UTC 2010
If no one comes up with a good solution, you might want to take a look
at how Illiad handles that situation as it uses ajax for everything
but automatically degrades if js is off.
On Mon, Aug 16, 2010 at 3:32 PM, Boris Popov, DeepCove Labs (SNN)
<boris at deepcovelabs.com> wrote:
> Is there a better (more elegant) way of cancelling default action of, say,
> an anchor when ajax is invoked? That is to support regular callback: when
> javascript is not available, but prevent page navigation when it is. At the
> moment I have,
>
> (html anchor)
> callback: [ ... ];
> onClick: (html jQuery ajax script: [:s | ... ]) , (html javascript return:
> false)
>
> Suggestions?
>
> -Boris (via BlackBerry)
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
More information about the seaside
mailing list