$(''a#myUniqueID'').click(function () {
//Issue AJAX call and do something with it
return false; //By returning false, you prevent the browser from
redirecting you to the href of the a tag
});
Here are the docs for the AJAX stuff:
http://docs.jquery.com/Ajax
Good luck!
On Tue, Jan 13, 2009 at 1:38 AM, Andrew Porter
<andy-OV3k8GMR8cdg9hUCZPvPmw@public.gmane.org> wrote:
>
> Anyone know how to unobtrusively turn a normal link <a> into an ajax
> link using jQuery ?
>
>
> >
>
--
-Richard Aday
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---