On Mon, 2008-07-07 at 21:50 -0700, bharathi wrote:
> I am creating one Django application with jquery..
> In that Jquery function am using One Ajax script.. Django code cant
> taken that ajax code...
>
> My code is:
>
> $(document).ready(
> function () {
> $("#sortme").Sortable(
> {
> accept : 'sortitem',
> onchange : function (sorted) {
> serial = $.SortSerialize('sortme');
>
> $.ajax({
> url: "/sortdata",
You should probably add a trailing slash here: "/sortdata/" instead of
"/sortdata". Django will redirect the browser to /sortdata/ by default
(see APPEND_SLASH) and your POST data will be lost.
> type: "POST",
> data: serial.hash,
> // complete: function(){},
> success: function(feedback){
> $('#data').html(feedback); }
> // error: function(){}
>
> });
>
> }
> }
> )
>
>
>
> }
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---