SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
Thread: jQuery and Ajax
Hybrid View
-
Dec 10, 2007, 05:02 #1
- Join Date
- Jul 2006
- Location
- South Africa
- Posts
- 29
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
jQuery and Ajax
I've done this in Scriptaculous before but want to get it working for jQuery. The idea is to save the position and colomn of the items in the sortable is via ajax on the fly.
So have a look at this. Inteface Sortables
I've alter mine a bit. Now the Alert fires on "onDrop". What i need it to do is send the serialized data (the array "sort1[]=hopping&sort1[]=news....") via POST to a backend.php that uses it. But I'm not sure where to put it. The jQuery documentation offers a solution. Here it is.
Code JavaScript:$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } });
Blog, Graphic, Web and Frontend Designer
www.foxinni.com
Bookmarks