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
GirinoobGirinoob 

<apex:Apexfunction> is not getting called from Javascript in Firefox

Hi,

I am trying to call <apex:Apexfunction>  from javascript. It works fine in IE and Chrome but, fails in Firefox. I don't know why.

Can any one help me out on this ?

 

Below is my code:

<script>

function disableButton(obj){

savePost();
}

</script>

 

<apex:form>

      <apex:actionfunctionname="savePost"action="{!saveObject}"/>

 <apex:commandButton value="Test" onclick="disableButton(this);"/>

 

</apex:form>

 

 

The javascript function gets called but savepost(); function is not getting fired in Firefox.