yes its done ^^ thx rick On Fri, Dec 25, 2009 at 6:13 PM, Rick Faircloth <r...@whitestonemedia.com>wrote:
> Check out the .live() function in jQuery for enabling > > ajax-added links to your HTML. > > > > hth, > > > > Rick > > > > *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On > Behalf Of *PUTRA PRIMA > *Sent:* Friday, December 25, 2009 1:01 AM > *To:* jquery-en@googlegroups.com > *Subject:* [jQuery] [ask]problem with ajax > > > > hai jquery user ^^ > > i have a problem with ajax, here is the problem : > > i have a list of table/data with edit and delete link in file, data.php and > i load data.php in my dashboard file named it dashboard.php > > so this dashboard.php load file data.php result like this : > > name address control > john doe1 anonym delete/edit > john doe2 anonym delete/edit > john doe3 anonym delete/edit > john doe4 anonym delete/edit > > > is it possible that i use the link in data.php to trigger onclick ajax > function in dashboard.php ? if it does how ? im really confused with this > one T_T > > i already try this jquery script but it doesn't work > > $(".delBtn").click(function(){ > var del_id = element.attr("id"); > var info = 'id=' + del_id; > $.ajax({ > type:"POST", > url:"http://localhost/index.php/superAdmin/delete", > data:info, > succes:function(){ > $(".helper").html("Data > deleted").fadeIn('slow').animate({opacity: 1.0}, 2000).fadeOut('slow'); > } > }); > return false; > }); > > pardon my english ^^ > > -- > Putra Prima A > 0410630078 Teknik Elektro Brawijaya > 3 ipa 2 smunsa 2004 > http://siubie.web.id/ > -- Putra Prima A 0410630078 Teknik Elektro Brawijaya 3 ipa 2 smunsa 2004 http://siubie.web.id/