Welcome Guest, Not a member yet? Register   Sign In
Do I need a view for an animated JQuery ajax delete row?
#9

[eluser]Tim Post[/eluser]
I think you have the basics of it down. You do need to check to make sure:

- It is an AJAX request
- The user has the right to do it

I'd also really consider turning on the built in XSRF protection. Additionally, (nitpicking), it's generally nice to set the HTTP status code appropriately when returning the response. A 200 when something bad happened isn't really consistent. It doesn't really matter in this particular case, but it's a nice habit to get into.


Messages In This Thread
Do I need a view for an animated JQuery ajax delete row? - by El Forum - 05-31-2012, 10:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB