+ Start a Discussion
Shwetal DesaiShwetal Desai 

java script events with Standard Action Methods

Hello experts,Can I use Javascript events of commandButton and CommandLink in Visualforce page with Standard Action method?

for example: onComplete event with action="{!save}"

 

is this possible?

 

HarmpieHarmpie
You will probably need to use <apex:actionSupport> for your button or link.
prageethprageeth

No. You can't directly call a JavaScript function in button action. 

I can't understand why you need to put a JS function in button action when "onClick" method is available for JavaScripts.

Message Edited by prageeth on 10-04-2009 10:42 PM