|
|
|||||
Animated Ajax Record Deletion Using jQueryI’m a huge fan of WordPress’ method of individual article deletion. You click the delete link, the menu item animates red, and the item disappears. Here’s how to achieve that functionality with jQuery javascript. The PHP – Content & Header The following snippet goes at the top of the page: 1.if(isset($_GET['delete'])) The following is used to display the records: The jQuery Javascript 01.$(document).ready(function() { For every link, we add a click event that triggers the Ajax request. During the request, we transition the containing element to a red background. When the Ajax request returns a “success” response, we slide the element off of the screen. source: davidwalsh.name |
|||||
| Copyrights Reserved AjaxProjects.com 2006-2013, Powered by Enozom - Mobile Development Company -Privacy Policy |