salesforce - how do we call a javascript function after executing controller method -



salesforce - how do we call a javascript function after executing controller method -

i have vf page save button. calling controller method in vf page. close vf page 1 time save method executed.

<apex:commandbutton value="save" action="{!save}"/>

i think can close page using javascript function.

thanks

prady

here's easiest way i've found accomplish this.

create visualforce page (i have same page named "closeme") markup:

<apex:page > <script type="text/javascript"> window.close(); </script> </apex:page>

then, redirect (by javascript or apex pagereference) page.

also, make sure profiles have necessary security access page.

instead, seek using actionfunction calls apex save action, set window.close(); javascript on oncomplete actionfunction parameter, think that's unnecessarily complicated.

salesforce visualforce

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -