Hi there, I have a cole like this:
function cCarregar(){
var div = document.createElement('div');
div.id = 'backCarrega';
div.className = 'back';
document.getElementById('lpDivs').appendChild(div);
var img = document.createElement('input');
img.type = 'image';
img.className = 'carregando';
img.src = 'carregando.png';
div.appendChild(img);
img.focus();
}
This is a function that shows a DIV with the text "Loading" on it.
I use it like this:
function carregar(procedure, inicio){
cCarregar()
var lista = $.ajax({url: '../PHP/sqlS.php', type:'POST', data:"sql=Select RESULT from "+procedure+"('"+codorganizacao+"','"+toJS(inicio)+"')", async:false, success:function(){}}).responseText;
carregaSelect(select1, lista, 0);
destroyCarregar()
}
When that code runs on Firefox it goes fine, but, on IE that the loading DIV doesn't appear.
When I wrote a alert("teste"); after img.focus(); on cCarregar(), it appeared.
I think IE can't refresh the screen to show the DIV.
How can I deal it ?
Thanks, sorry about my english, I'm from Brazil and I'm just learning.
function cCarregar(){
var div = document.createElement('div');
div.id = 'backCarrega';
div.className = 'back';
document.getElementById('lpDivs').appendChild(div);
var img = document.createElement('input');
img.type = 'image';
img.className = 'carregando';
img.src = 'carregando.png';
div.appendChild(img);
img.focus();
}
This is a function that shows a DIV with the text "Loading" on it.
I use it like this:
function carregar(procedure, inicio){
cCarregar()
var lista = $.ajax({url: '../PHP/sqlS.php', type:'POST', data:"sql=Select RESULT from "+procedure+"('"+codorganizacao+"','"+toJS(inicio)+"')", async:false, success:function(){}}).responseText;
carregaSelect(select1, lista, 0);
destroyCarregar()
}
When that code runs on Firefox it goes fine, but, on IE that the loading DIV doesn't appear.
When I wrote a alert("teste"); after img.focus(); on cCarregar(), it appeared.
I think IE can't refresh the screen to show the DIV.
How can I deal it ?
Thanks, sorry about my english, I'm from Brazil and I'm just learning.