jQuery dialog behaving like an alert
Posted on 2011-04-25
I have an ASP.NET MVC 2 app where I'm using JQuery for the most of client UI interactions.
On several forms, when the submit button is clicked, some checks are made and depending on it's results, an alert is shown to warn users about the data they are inputting (data is valid, but the app warn the user about specific cases that they would be missing).
I'd like to use JQuery dialogs to substitute these alert boxes, but when I try it the form submits without await for users cliking in dialog's "Ok" button.
In my search I've come to the idea that I probably should submit the form as a callback of the functions that shows the dialog, but I'm a bit confused about this and will appreciate any comment or suggestion on the matter.