You need to sign in to do that
Don't have an account?

<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.