As we all know java script function will execute first then controller method executes, In some case we need java script method should execute first. Below is the work around for this case. Instead of normal java script we will use on load java script which means when page loads/refresh that java script function will execute. Again it will be problem because each and every time that method will execute. How to avoid this ? We will use a Boolean variable to control execution. public Boolean isJavascriptInvoked { get { if (null == this.isJavascriptInvoked ) { this.isJavascriptInvoked = false; } return this.isJavascriptInvoked ; } set; } public PageReferen...
A place where you have to land for exploring Salesforce