I'm in the process of making a demo ASP.NET MVC app for educational purposes.
I have an image/link that flags a post as offensive. I would like to request from the server via AJAX to flag offensive and check to make sure that the user has this ability.
If the user does, then I want to flag the post as offensive in the database and return that the flag went through. If the user ends up NOT having the right to flag items then I would like to return a negative message to the client so I can popup a nice jQuery box stating that it didn't go through.
I'm trying to do this all without a full postback/refresh.
Does anyone have any links to examples of simple AJAX requests being made with MVC?