0

When my code is embedded in an iframe that starts off as hidden in the parent page the jquery functions $(window).width() and $(window).height() return 0 regardless of what the css is set to. Then once the iframe is set to visible the resize event is not thrown, so there is no way to tell that the parent page has made it visible.

Here is an simple example of the problem http://www.mapdevelopers.com/test_large.html

Right now the only solution I have been able to come up with is to check on an interval to see if $(window).width() has a value over 0, and load the page accordingly once it does, but I assume there must be a better way to do this.

Any Ideas?

Daniel
  • 10,864
  • 22
  • 84
  • 115
Fred
  • 222
  • 2
  • 6

0 Answers0