3.0 beta 2

AW version 2.5.6 detection problems with IE 6 (and 7 ?)

Hello

in version 2.5.6 there seems to be a bug in the detection (lib\browsers\detect.js):

The line 80
else if (s.fontVariant){

matches also on the IE6 (strict mode) and gives the wrong browser type IE9 (htmlc is set with aw-ie9 and aw-ms9 instead of aw-ie6 and aw-ms6).
This breaks the tab and button rendering.
Roland Bär
June 7,
Sample Code to reproduce the problem:
<!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" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
    <title>ActiveWidgets Example</title>
    <!-- ActiveWidgets stylesheet and scripts -->
    <link href="runtime/styles/system/aw.css" rel="stylesheet" type="text/css" ></link>
    <script src="runtime/lib/aw.js" type="text/javascript"></script>
    <style type="text/css">
        *		{-moz-box-sizing: border-box;}
        html	{ width: 100%; height: 100%; margin: 0px; padding: 0px; overflow: hidden}
        body	{ width: 100%; height: 100%; margin: 0px; padding: 50px; overflow: hidden; font: menu}
    </style>
    <script type="text/javascript">
        window.focus();
    </script>

</head>
<body>
<script type="text/javascript">
    var obj = new AW.UI.Tabs;
    obj.setItemText(["Home", "Favorites", "Font size", "Search"]);
    obj.setItemImage(["home", "favorites", "fontsize", "search"]);
    obj.setItemCount(4);
    obj.setSelectedItems([0]);
    document.write(obj);
</script>
<div style="border-top: 1px solid #999"></div>
</body>
</html>
Roland Bär
June 7,
Roland,

Many thanks for finding this - it is a bug, and it does break the AW 2.5.6 in ie6 and ie7. I am going to replace it with

else if (ua.match("MSIE 9")){


as there are no new css attributes in IE9 which are visible in quirks mode.

Alex (ActiveWidgets)
June 7,
Will there be a new version with this bugfix in the near future or can you provide me a fixed runtime release of 2.5.6? I could fix the source myself but I wouldn't like to use the source in the productive system as it creates more traffic...

Thanks
Roland
Roland Bär
June 8,
Yes, I will release the new version in the next few days, this has to be fixed quickly.

In the meantime you can also modify the runtime\lib\aw.js, line 17, char 1372.
Alex (ActiveWidgets)
June 8,
Just checking if the new version has been released yet.
Thanks
Justin
June 21,
Hi Alex

Is the new release out by now? Where can I find it?
Thanks
IS
August 24,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.