Hello,

I'm creating 'Edit/Delete this article' link above per article with jQuery
Ajax. Then I started from Delete link with $this->ajaxLink() in my view
script because I thought it's simplest action. Link is being created without
any problem. Even that link removes the article from db and clears the
article content from browser view. However, article container "<div
id='article-10'></div>" is still in place until I refresh the browser
manually.

Like:
<?php echo $this->ajaxLink("Delete", "/article/delete/id/".$id,
                                                array('update' =>
'#about-item-'.$id',
                                                      'beforeSend' =>
'hide',
                                                      'complete' =>
'remove()', // i'm not sure here
                                                      'noscript' => false,
                                                      'method' => 'post'))
?>

Is it possible to implement manipulation functions of jQuery such as
.remove("#id"), .replaceWith() from ZendX_JQuery?



Any advise will be greatly appreciated..

Thank you very much in advance.




---
Sincerely,
Enkhbilguun Erdenetsogt

Reply via email to