function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ATSATS 

Calling S-Control from button in VF page

I have a commandButton on a vf page that I need to call {!save} and then call an S-control that performs some javascript functions.  What is the best way to do this?
mtbclimbermtbclimber

If your javascript is 100% static then move them out of the scontrol and into a Static Resource and include it in your page with the apex:includeScript tag and the $Resource global variable then just call the respective functions in the oncomplete attribute of the commandbutton.