2008/3/12, David Huynh <[EMAIL PROTECTED]>:
>
> Askild Aaberg Olsen wrote:
> > David Huynh wrote:
> >
> >> Leon,
> >>
> >> I'm getting a new Windows box in a week and I'll try to get IE8 on
> that.
> >> I can't risk losing IE7 on my current Windows box.
> >>
> >> In the meantime, if you spot any error log in IE8 when using Exhibit,
> >> let me know. Thanks.
> >>
> >> David
> >>
> >>
> > Hi David, and thank you for the great products from the Simile-team!
> >
> > You can test-drive IE8 with Virtual PC and the one of the images from
> >
> http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en
> >
> > This way you are able to test for both IE6 and IE8.
> >
>
> Ah, thanks for the tip! That's very helpful.
>
> And there's good news: it seems that IE8 returns an empty string (where
> IE7 returns null) when Exhibit calls getAttribute on an element with a
> non-existent attribute. So, what we need to fix is the
> Exhibit.getAttribute function. For now, you can add this Javascript code
> after including exhibit-api.js.
>
> <script>
>         Exhibit.getAttribute = function(elmt, name, splitOn) {
>             try {
>                 var value = elmt.getAttribute(name);
>                 if (value == null || value.length == 0) { // previously:
> if (value == null) {
>                     value = elmt.getAttribute("ex:" + name);
>                 }
>                 if (splitOn == null) {
>                     return value;
>                 }
>                 var values = value.split(splitOn);
>                 for (var i = 0; value = values[i]; i++) {
>                     values[i] = value.trim();
>                 }
>                 return values;
>             } catch(e) {
>                 return null;
>             }
>         };
> </script>
>
> This code makes this exhibit
>     http://people.csail.mit.edu/dfhuynh/misc/nobelists/nobelists.html
> work on IE8 for me.
>
> Please give that exhibit a try on your IE8. Thanks!
>
>
> David
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
>
>
David,
All is working fine now in my IE8

Thanks for this fix,

Leon
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to