AJAX select list issue in IE6
January 11, 2006
/ Filed under: Browsers, Web Development
Today I put some AJAX into a form I’m working on, in order to more smoothly facilitate finding a person’s name from a database. The approach works great, except in IE 6, any select lists that reside underneath the DHTML layer show through:
This doesn’t seem to happen for any other form element, and it only happens in IE 6. Firefox displays it properly.
Comments/Mentions
|
Editor PicksEmail NewsletterSubscribe to the digest newsletter to receive posts by email: Recent Comments
Advertisements
|

IE6 = devil.
one of the best work arounds for IE6 not listening to z-index, is to generate an <IFRAME> for every floating div and resize it to fit the floating div, and z-index below it... this is usually called the "shim" technique - searching for it should find you good code or you can look at one implimentation of it I did (note, you should only do this for IE5 )
var shimURLhttp = ’about:blank’;
var shimURLhttps = ’/CustomComponents/HTML/blank.html’;
var shimURL = (window.location.href.toLowerCase().indexOf(’https://’) == 0 ? shimURLhttps : shimURL_http );
function underlayShim(elObj) {
//alert(’underlayShim(’ dumpthis(elObj) ’)’);
try {
// get top layer
layerTop = $(elObj);
// get shim layer
if (!$(layerTop.id ’Shim’)) {
document.body.insertAdjacentHTML("beforeEnd",’’);
}
layerShim = $(layerTop.id ’Shim’);
// set attribute for future shim needs
layerTop.shimID = layerTop.id ’Shim’;
// position