IE version : 6.0.29000.5512.xpsp_sp3_gdr.080814-1236

What do you think is showed on IE alert window with following code ???
Both are "[Object]" !!!

If you think to fix it is necessary, Hope you to update  prototype.js,
 or tell the author to update!
Thanks!







<html>
<head>
<script src="prototype-1.6.0.2.js" language="JavaScript" type="text/
javascript" ></script>
<script>
/*
if (/msie/i.test (navigator.userAgent)){
    document.nativeGetElementById = document.getElementById;
    document.getElementById = function(id){
        var elem = document.nativeGetElementById(id);
        if(elem){
            if(elem.attributes['id'].value == id){
                return elem;
            }else{
                for(var i=1;i<document.all[id].length;i++){
                    if(document.all[id][i].attributes['id'].value ==
id) {
                        return document.all[id][i];
                    }
                }
            }
        }
        return null;
    };
}*/
function load(){
        var ele = null;
        ele = document.getElementById("sex");
        alert(ele);
        ele = null;
        ele = $("sex");
        alert(ele);
}
</script>
</head>
<body onload="load()">
        <select name="sex">
                        <option value="0">boy</option>
                        <option value="1">gril</option>
        </select>

</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to