Re: Ajax call and DOM modification

2010-09-02 Thread cricket
On Thu, Sep 2, 2010 at 3:36 PM, Mariano C. wrote: > Where can I find a turorial/article? Dunno. I don't use the JS Helpers. But, if you're using JQuery, it's pretty simple. $('#some_identifier li a').click(function(e) { var the_link = $(this); $.ajax({ url: the_l

Re: Ajax call and DOM modification

2010-09-02 Thread Mariano C.
Where can I find a turorial/article? On 2 Set, 19:40, cricket wrote: > On Thu, Sep 2, 2010 at 9:22 AM, Mariano C. wrote: > > I have a view like this, called collection.ctp > > > echo "" > >    foreach ($elements as $element): > >        echo "" > >             echo $ajax->link('delete 1', array(

Re: Ajax call and DOM modification

2010-09-02 Thread cricket
On Thu, Sep 2, 2010 at 9:22 AM, Mariano C. wrote: > I have a view like this, called collection.ctp > > echo "" >    foreach ($elements as $element): >        echo "" >             echo $ajax->link('delete 1', array( 'controller' => > 'users', 'action' => 'remove', $element['item']['id'] )); >    

Ajax call and DOM modification

2010-09-02 Thread Mariano C.
I have a view like this, called collection.ctp echo "" foreach ($elements as $element): echo "" echo $ajax->link('delete 1', array( 'controller' => 'users', 'action' => 'remove', $element['item']['id'] )); echo "" endforeach; echo "" this view is rendered by c