$('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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---