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
Ramon PereiraRamon Pereira 

Incompatible browser

Personal, 

 

I have the following problem:

 

I have a button on the page of details that requests information to another system using SOAP.
To inform the User that the system getting this information, I created a small adjustment as seen here to display a modal window Query.

The problem is that the code below only works in firefox or chrome on the Internet does not work.

Could someone help me.

Code button javaScript: 

 
{!REQUIRESCRIPT('/js/functions.js')} 
{!REQUIRESCRIPT('/resource/jQuery/jquery-1.8.2.min.js')} 
{!REQUIRESCRIPT('/resource/jQuery/ui/jquery-ui-1.9.1.custom.min.js')} 
{!REQUIRESCRIPT('/soap/ajax/27.0/connection.js')} 
{!REQUIRESCRIPT("/soap/ajax/27.0/apex.js")} 



requireCssFile('/resource/jQuery/ui/css/ui-lightness/jquery-ui-1.9.1.custom.min.css'); 

function requireCssFile(filename) { 
var fileref = document.createElement('link'); 
fileref.setAttribute('rel', 'stylesheet'); 
fileref.setAttribute('type', 'text/css'); 
fileref.setAttribute('href', filename); 
document.getElementsByTagName('head')[0].appendChild(fileref); 
} 
var j$ = jQuery.noConflict(); 

var j$modalDialog = j$('<div></div>') 
.html('Por favor aguarde... <br> <br> <img src="https://cs11.salesforce.com/resource/1371832281000/aguarde_Opp_SL_COM_025" width="170" height="25" alt="Aguarde..."> ') 
.dialog({ 
autoOpen: false, 
title: 'Atualizando Cliente', 
resizable: false, 
width: 200, 
height: 180, 
autoResize: true, 
modal: true, 
draggable: false 

}); 
console.log("Preparando para carregar a pagina com Jquery"); 
j$modalDialog.dialog('open'); 
console.log("Pagina Jquery carregada! "); 
console.log("Preparando para atualizar Cliente"); 
atualizarCliente() 
console.log("Retorno da solicitação"); 

function atualizarCliente(){ 
Id="{!Account.Id}"; 
msg = sforce.apex.execute("AtualizaClienteController","atualizarCliente",{idAcc:Id}); 

if(msg == null || msg == ''){ 
msg = 'Erro ao consultar o Cliente!'; 
} 
window.confirm(msg); 
window.location.reload(); 
} 


//j$modalDialog.dialog('close');

 

 

Thanks; 

Avidev9Avidev9
Remove console.log() this is not supported in older version of IE like IE8