[UPHPU] FF can't read height within modal
Wade Preston Shearer
wadeshearer.lists at me.com
Fri Apr 17 18:15:52 MDT 2009
On a project that is using SimpleModal [1] [2], a separate page is
being loaded into the modal via an iframe (one of options the modal
script provides). I have a div within the page that is loaded into the
modal that has a height. If I load this page directly (outside of the
modal), I can successfully read it's height with jQuery in all
browsers. Firefox however cannot read the height of the div when the
page is loaded within the modal (Safari does just fine). When I load
the page in a vanilla iframe, Firefox reads the height fine. It's only
in the modal's iframe that it returns zero. I am absolutely stumped.
It's as if the script that reads the height is not respecting the
jQuery $(document).ready when run within the modal in Firefox (ie:
it's trying to read the height before the page has finished rendering).
Any ideas?
[1] http://www.ericmmartin.com/projects/simplemodal/
[2] No, switching modal libraries isn't an option.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2431 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20090417/c264aed5/smime.bin
More information about the UPHPU
mailing list