You need to use ajax to post form
data to your script than in the success
function you can open a dialog and show the success message there
$.ajax({
type: "POST",
url: "yourscripturl",
data: 'var='+var,
success: function(html){
$( "#dialog" ).dialog({
resizable: false,
height:350,
width:500,
modal: true,
buttons: {
CANCEL: function() {
$("#dialog").dialog( "close" );
}
}
});
}
});
And if you dont want to use ajax
than on your http://app.bronto.com/public/webform/process/ page you can just open the dialog like this
$(document).ready(function(){
$( "#dialog" ).dialog({
resizable: false,
height:350,
width:500,
modal: true,
buttons: {
CANCEL: function() {
$("#dialog").dialog( "close" );
}
}
});
});