thebashi
22 Jun 2007, 1:04 AM
hi,
i am creating a dialog which container divs gets created on fly.
<div id="depts-grid-dialog" style="visibility:hidden;position:absolute;">
<div class="x-dlg-hd">Edit Current Record</div>
<div class="x-dlg-bd" id="depts-grid-dialog-body">
</div>
</div>
var gridDialog=document.createElement('div');
gridDialog.id=container+'-grid-dialog';
gridDialog.style.visibility='hidden';
gridDialog.style.position='absolute';
var gridDialogHeader=document.createElement('div');
gridDialogHeader.id=container+'-grid-dialog-header';
gridDialogHeader.setAttribute('class','x-dlg-hd');
gridDialogHeader.innerHTML='Edit current record';
gridDialog.appendChild(gridDialogHeader);
var gridDialogBody=document.createElement('div');
gridDialogBody.id=container+'-grid-dialog-body';
gridDialogBody.setAttribute('class','x-dlg-bd');
gridDialog.appendChild(gridDialogBody);
document.getElementById('containerForAll').appendChild(gridDialog);
i create this div set on fly with js shown above. it works fine with FF. however dialog doesnt show correctly in ie. when i look dom structure of page in IE, i couldnt see divs, which means they couldnt created.
i know this problem is not Ext.js specific problem. but everybody here uses javascript and tests in same environments.
is there a way Ext handle this situation, like a config parameter which will let dialog to create its own container divs, or something like this.(autoCreate sounds like this but it didnt work)
Or, is there a workaround for this IE issue...
thanks....
i am creating a dialog which container divs gets created on fly.
<div id="depts-grid-dialog" style="visibility:hidden;position:absolute;">
<div class="x-dlg-hd">Edit Current Record</div>
<div class="x-dlg-bd" id="depts-grid-dialog-body">
</div>
</div>
var gridDialog=document.createElement('div');
gridDialog.id=container+'-grid-dialog';
gridDialog.style.visibility='hidden';
gridDialog.style.position='absolute';
var gridDialogHeader=document.createElement('div');
gridDialogHeader.id=container+'-grid-dialog-header';
gridDialogHeader.setAttribute('class','x-dlg-hd');
gridDialogHeader.innerHTML='Edit current record';
gridDialog.appendChild(gridDialogHeader);
var gridDialogBody=document.createElement('div');
gridDialogBody.id=container+'-grid-dialog-body';
gridDialogBody.setAttribute('class','x-dlg-bd');
gridDialog.appendChild(gridDialogBody);
document.getElementById('containerForAll').appendChild(gridDialog);
i create this div set on fly with js shown above. it works fine with FF. however dialog doesnt show correctly in ie. when i look dom structure of page in IE, i couldnt see divs, which means they couldnt created.
i know this problem is not Ext.js specific problem. but everybody here uses javascript and tests in same environments.
is there a way Ext handle this situation, like a config parameter which will let dialog to create its own container divs, or something like this.(autoCreate sounds like this but it didnt work)
Or, is there a workaround for this IE issue...
thanks....