+ Start a Discussion

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


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:


function disableButton(obj){






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





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