Posts Tagged ‘Internet Explorer’

Inernet Explorer 9 RC (Release Candidate) was released on 10th February, now Microsoft is ready to release the final version RTM of Internet Explorer 9 on 14th March at the SXSW conference.

Microsoft has alre

Internet Explorer 9

Image via Wikipedia

ady said that Internet Explorer 9 RC will automatically update to the Final version of IE9 (internet Explorer 9). But now it’s unsure whether Microsoft will provide this update on 14th March at the SXSW conference or if we’ll have to wait for the next Patch Tuesday. In either case direct download should be available around 9pm on 14th March.

On the other hand Microsoft Developer Network India, has tweeted that final Version of Internet Explorer 9 RTM will release on 24th March at Tech.Ed in India.
Microsoft might launch Internet Explorer 9 on 14th march and may officially launch it in India on 24th March. So Internet Explorer 9 Final version RTM is expected to release on 14th March, but is confirmed for Release on 24th March.

Released in 2001, Internet Explorer 6 has been one of the most frustrating browsers ever released. Since it doesn’t support a lot of key web standards, a high percentage of websites look awful on IE6, to a level where it makes the site almost unreadable.

Unfortunately, the browser is still used by millions of people around the world, therefore a large number of high profile people and companies support projects such as IE 6 No More and Bring Down IE6.

Today I would like to show you a range of WordPress plugins which force or encourage visitors to upgrade their browser if they are using Internet Explorer 6. It may sound like a drastic step however it’s worth doing if your design doesn’t work on IE 6 (unfortunately many top designs are). Most of these plugins work in a similar way so I recommend trying a few in your test area and choosing which one suits you.

I hope you’ve found this article useful.

Best of luck :)

The non-DOM property innerHTML can’t add options to a tag select in Internet Explorer.

Example not working:

document.getElementById("my_select").innerHTML 
= "<option value='1'>not</option> 
<option value='2'>work</option>"; 

The correct way to insert options in a select is using appendChild or addOption functions. But that’s tiring if we are working with Ajax.

Use innerHTML is not the standard but it is very useful.

The function above, will help you to insert options like using innerHTML, in IE, Firefox or Opera.

Updated: now supports option-selected

Using my function:

var inner = 
"<option value='1'>Now</option> 
<option value='2'>work</option>"; 


select_innerHTML(document.getElementById("my_select"),inner);

The function. Add to your lib.

function select_innerHTML(objeto,innerHTML){

    objeto.innerHTML = ""
    var selTemp = document.createElement("micoxselect")
    var opt;
    selTemp.id="micoxselect1"
    document.body.appendChild(selTemp)
    selTemp = document.getElementById("micoxselect1")
    selTemp.style.display="none"
    if(innerHTML.toLowerCase().indexOf("<option")<0){
        innerHTML = "<option>" + innerHTML + "</option>"
    }
    innerHTML = innerHTML.toLowerCase().
replace(/<option/g,"<span").replace(/<\/option/g,"</span")
    selTemp.innerHTML = innerHTML
      
    
    for(var i=0;i<selTemp.childNodes.length;i++){
  var spantemp = selTemp.childNodes[i];
  
        if(spantemp.tagName){     
            opt = document.createElement("OPTION")
    
   if(document.all){ //IE
    objeto.add(opt)
   }else{
    objeto.appendChild(opt)
   }       
    
   //getting attributes
   for(var j=0; j<spantemp.attributes.length ; j++){
    var attrName = spantemp.attributes[j].nodeName;
    var attrVal = spantemp.attributes[j].nodeValue;
    if(attrVal){
     try{
      opt.setAttribute(attrName,attrVal);
opt.setAttributeNode(spantemp.attributes[j]
.cloneNode(true));


     }catch(e){}
    }
   }
   //getting styles
   if(spantemp.style){
    for(var y in spantemp.style){
     try{opt.style[y] = spantemp.style[y];}catch(e){}
    }
   }
   //value and text
   opt.value = spantemp.getAttribute("value")
   opt.text = spantemp.innerHTML
   //IE
   opt.selected = spantemp.getAttribute('selected');
   opt.className = spantemp.className;
  } 
 }    
 document.body.removeChild(selTemp)
 selTemp = null
}