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
CLKCLK 

Redirection through ActionFunction not working in IE browser

function redirect(){
        if(!checkClientSideValidations())
                     actionFunction();
}

<apex:actionFunction name="actionFunction" action='{!ControllerRedirectMethod}'/>

<apex:commandButton onclick="redirect();" value="Next">

As shown in above code, When i trying to redirect user from one page to another using ActionFucntion, then its not working only in IE browser. In debugging found that, it actually not calling controller action mentioned in actionFunction. On the click, its redirecting user to same page and flushing the view state. All works well in chrome.

Anyone has idea, where its going wrong or its browser specific issue?
Gaurav KheterpalGaurav Kheterpal
Looks to be the same issue as described here (http://salesforce.stackexchange.com/questions/12407/actionfunction-working-in-chrome-but-not-in-ie-and-moz).

I would recommend adding this to see if it fixes the issue
 
event.preventDefault();
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker