Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-17-2011, 12:14 AM   PM User | #1
knightcon
Regular Coder

 
Join Date: Apr 2007
Location: Griffith. Australia
Posts: 138
Thanks: 4
Thanked 4 Times in 4 Posts
knightcon is an unknown quantity at this point
jQuery Ajaxify Execution

I have been looking at using jQuery and Ajaxify for my website to make only certain links run as AJAX links, namely links which don't need confirmation or lead to another page, such as deletion links or report links, I read about Ajaxify and saw that it would do exactly what i'm after but I would like to use it the way that Facebook does in so much as there is a HTML attribute in the <a> tag named ajaxify which contains the URL to connect to along with the parameters. It will only ever be a GET and there won't ever be a response from the page.

This is something like what I want to achieve...

Code:
<a href="#" class="someClass" ajaxify="/path/to/handler/file.php?q=2837942349&f=23849234>Some Caption</a>

<a href="index.php?something=true">Some Other Caption</a>
So essentially what I am after is for the first link to be turned into an AJAX link and when it is clicked it calls /path/to/handler/file.php?q=2837942349&f=23849234 and then does something on the client side which I can specify on the onclick function such as DoDelete( ).

Thanks in advance
knightcon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:29 PM.


Advertisement
Log in to turn off these ads.