Skip to content Skip to sidebar Skip to footer

Post Without Response In Django/javascript Interaction

I have a happy javascript based client that talks to my Django server-side code. I use several XMLHttpRequests for interactions and everything is fine there. Now there is one user

Solution 1:

You should return a Http204/No Content, which tells the browser that your server acknowledged and processed your request but it didn't return anything and handle that appropriately in your application (however you want to).

If you're using jQuery (for example), then this will automatically go to your success handler, and if you have no control over that, you've done the best you could.

Read the full list of status codes here

Post a Comment for "Post Without Response In Django/javascript Interaction"