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
davidesidavidesi 

calling an apex:actionFuction doesn't works from Firefox

Hi to all.

I have been searching that problem in internet but I haven't got it.

 

I have a VF page with a commandButton, and when it is clicked I need to disable that button and send the form. It works fine with IE and Chrome , but it's not working with Firefox.

 

Here is my code:

 

<apex:form >
<apex:actionFunction name="enviarFormulario" action="{!OK}"/>

 

 

<apex:commandButton value="Confirmar"   id="confirmar" onclick="buttonsEnabled(false); enviarFormulario();" disabled="{!if(errorTimeout,true,false)}"/>

 

 

and here are the javascripts

function buttonsEnabled(enable) {
var $buttons = jQuery('.btn[id$="confirmar"]'); // find all buttons in the page
if (enable === false) {
$buttons.toggleClass('btnDisabled', true).attr('disabled', 'disabled');
} else {
$buttons.toggleClass('btnDisabled', false).attr('disabled', null);
}

}

 

 

Any advice with it?

 

Thanks in advance

Vinita_SFDCVinita_SFDC

Hello,

 

Please check if the FF has any add-ons, try testing without add-ons.