jquery - confirmation page on modal box after hitting submit -
i'm trying set form our customer fill out form once click submit confirmation page or thank page on modal page instead of new page.
i hope can help. thank much.
here's form code:
<form action="http://app.bronto.com/public/webform/process/" method="post"><input type="hidden" name="fid" value="526jqvda4qbad5qgzy1xhz203whh0" /> <input type="hidden" name="sid" value="52c351afd4045042772a1f46b5faa787" /> <input type="hidden" name="delid" value="" /> <input type="hidden" name="subid" value="" /> <script type="text/javascript">// <![cdata[ var fieldmaps = {}; // ]]></script> <div id="row_113480" class="section"> <div id="column_136646" class="container" style="text-align: left;"><strong>sign our newsletter</strong> </div> <div style="clear: both;"> </div> </div> <div id="row_113481" class="section"> <div id="column_136647" class="container" style="text-align: left;"> <div class="email field_block"> <div class="field"><span> <input class="text field fb-email" type="text" name="199075" value="" size="25" /> </span> <div class="caption">be first know exclusive promotions, new products , more.</div> <div class="field_error"> </div> </div> </div> </div> <div id="column_136648" class="container" style="text-align: left;"><input type="hidden" name="199078[450111]" value="true" /></div> <div style="clear: both;"> </div> </div> <div id="row_113482" class="section"> <div id="column_136649" class="container" style="text-align: left;"> <div class="field_block"> <div class="field"><span> <input type="submit" value="subscribe" /> </span></div> </div> </div> </div>
you need use ajax post form
data script in success
function can open dialog , show 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 dont want use ajax
on http://app.bronto.com/public/webform/process/ page can open dialog
$(document).ready(function(){ $( "#dialog" ).dialog({ resizable: false, height:350, width:500, modal: true, buttons: { cancel: function() { $("#dialog").dialog( "close" ); } } }); });
Comments
Post a Comment