I'm using jqModal to display a form that gets populated through AJAX. I need to add validation so when "Submit" is clicked I need to make AJAX call to the server and then if validation error is detected instead of dismissing the dialog (which I do now) I need to display warning and leave jqModal dialog in place. I suspect that I can do it with a callback but can someone just hint me how it can be done?