[UI] Incompatibilité avec IE6
Bonjour,
J'ai téléchargé la dernière version de prototype-ui.
J'ai voulu tester le script d'exemple : prototype-ui/test/functional/window/test_url_window.html
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Test URL Content</title>
<script src="../../../lib/prototype.js" type="text/javascript"></script>
<script src="../../../lib/effects.js" type="text/javascript"></script>
<script src="../../../dist/window.js" type="text/javascript"></script>
<link href="../../../themes/window/window.css" rel="stylesheet" type="text/css">
<link href="../../../themes/window/alphacube.css" rel="stylesheet" type="text/css">
<link href="../../../themes/window/mac_os_x.css" rel="stylesheet" type="text/css">
<link href="../../../themes/shadow/mac_shadow.css" rel="stylesheet" type="text/css">
<style type='text/css'>
body {
background: #CCC;
}
</style>
</head>
<body>
<script type="text/javascript">
function runTest() {
UI.defaultWM.options.blurredWindowsDontReceiveEvents = true;
function openWindow(url) {
new UI.URLWindow({
width: 600,
height: 400,
shadow: true,
theme: "mac_os_x",
url: url || '../../fixtures/url_content.html' }).show();
}
openWindow();
openWindow();
openWindow("http://www.google.com");
}
Event.observe(window, "load", runTest);
</script>
</body>
</html> |
Il fonctionne correctement avec Firefox 2 mais absolument pas avec Internet Explorer 6
J'ai le message d'erreur suivant : ‘UI.defaultWM.options’ a la valeur Null ou n’est pas un objet
J'ai tenté de commenter la ligne:
UI.defaultWM.options.blurredWindowsDontReceiveEvents = true;
J'ai le message d'erreur suivant : ‘this.windowManager’ a la valeur Null ou n’est pas un objet
Comment pourrais-je résoudre ce problème ?
Merci d'avance pour vos futures réponses
PS : j'ai également posté sur le forum officiel de Prototype UI sans succès pour l'instant.