Axure / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

IE8.js produces "'px' is not defined" Javascript error with jQuery Fancybox #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install both IE8.js and jQuery Fancybox (http://fancybox.net/) on your site.
2. Visit a page.

What is the expected output? What do you see instead?

On load, you get an Javscript error "'px' is not defined" and the browser
hangs. 

What version of the product are you using? On what operating system?

IE8.js beta3, Fancybox 1.2.1, IE6

Please provide any additional information below.

This is because the CSS included with Fancybox has an expression statement
in it which is not properly evaluated by IE8.js:

* html div#fancy_overlay {
    position: absolute;
    height: expression(document.body.scrollHeight > document.body.offsetHeight
? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

Removing this style fixes the problem, however it seems that, even though
you no longer need IE-specific "expression" CSS statements, it should at
least fail gracefully.

Original issue reported on code.google.com by phreakh...@gmail.com on 8 Oct 2009 at 10:01

GoogleCodeExporter commented 9 years ago
Oops, sorry, the exact runtime error message is "Error: 'px' is undefined". Just
putting that in there so unlucky souls with the same problem can find it!

Original comment by phreakh...@gmail.com on 8 Oct 2009 at 10:28

GoogleCodeExporter commented 9 years ago
It seems like the expression is no longer in the fancybox css.

Original comment by dean.edw...@gmail.com on 11 Feb 2010 at 6:24