<div dir="ltr"><div><div>Hello Alan<br><br></div>Maybe using unload function see thread here <a href="http://stackoverflow.com/questions/6063522/dialog-box-runs-for-1-sec-and-disappears/6065085#6065085">http://stackoverflow.com/questions/6063522/dialog-box-runs-for-1-sec-and-disappears/6065085#6065085</a><br><br></div>Maybe I miss to understand your question correctly...<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Christophe Humbert<br><br><br></div></div>
<br><div class="gmail_quote">On Wed, Jun 24, 2015 at 4:01 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a javascript class that is performing some extra validations (using ajax).<br>
<br>
If the validation fails I am successfully showing a modal popup with the information required.<br>
<br>
When the user clicks the cancel link it works as expected - the window closes and nothing else happens.<br>
<br>
When the user clicks the OK button I want this to run some additional javascript code (but *not* a form submission) but I can't figure out how to do this "the vtiger way"... I could stick an "onclick()" thing in the button but this doesn't seem to be the way to to do it.<br>
<br>
Any suggestions?<br>
<br>
Cheers<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div></div>