2009/7/9 Miguel Beltran R. <[email protected]>

> The recommend content-type is 'applicacion/javascript' or
> 'application/ecmascript'
> 'text/javascript' and 'text/ecmascript' are obsolete
>
> http://www.rfc-editor.org/rfc/rfc4329.txt
>
>
I tried this in IE8, but  not working, can please someone confirm? only work
if change type="application/javascript" to type="text/javascript"
Is another bug from IE?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
      <title></title>
     <meta http-equiv="X-UA-Compatible" content="IE=8" />
      <meta http-equiv="Content-Type"
content="text/html;charset=iso-8859-1">
      <script src="
http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js";
type="application/javascript/javascript"></script>
<script type="application/javascript">
document.observe('dom:loaded', function(){
   $$('td').each(function(el){el.update(1);
            el.observe('mouseover', function(evt){

if(el.getStyle('backgroundColor')=='transparent')el.setStyle({'backgroundColor':
'blue'});
            });
            el.observe('mouseout', function(evt){

if(el.getStyle('backgroundColor')=='blue')el.setStyle({'backgroundColor':
'transparent'});
            });
            el.observe('click', function(evt){
               el.setStyle({'backgroundColor': 'red'});
            });
         })
});

</script>
<style type="text/css">
td{border:thin solid silver;}
</style>
</head>
<body>
<table>
      <tr>
              <td>Cell 1-1</td><td>Cell 1-2</td>
      </tr>
      <tr>
              <td>Cell 2-1</td><td>Cell 2-2</td>
      </tr>
</table>
</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 [email protected]
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