Just return an empty response, with a 200 OK code:

return HttpResponse("")

I'm not sure whether you can omit the ""

On Fri, Jul 6, 2012 at 5:44 PM, Larry Martell <larry.mart...@gmail.com> wrote:
> I have a situation where I'm sending an ajax request to a function
> that updates a row in database. I then want to return control to the
> browser, with no changes to the page that was up. I am not returning
> anything from the function, and it's working the way I want, however I
> get an error in the browser's console:
>
> Failed to load resource: the server responded with a status of 500
> (INTERNAL SERVER ERROR)
>
>
> Is there some was to avoid this error?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to