Initially hidden iframe won't load properly until it's refreshed. How can I fix?
I've been having crazy hell with getting (jquery plugin) AnythingSlider to load properly in an initially hidden iframe without manually refreshing said iframe.
The plugin seems to load as if the iframe were at the top of the page, and consequently most of the content is out of frame.
I've got a modified script (Slicker Show & Hide) that vanishes the iframe before the page loads, and I think this may be causing the problem (in that the AnythingSlider plugin can't retrieve the dimensions of it's frame), but I can't seem to find a way around it - something like making it appear offscreen, and then when called hide, move onscreen and show开发者_Go百科?
The site is live here
If anyone could please give me a hand, I'd love to get this set up so I can move on!
Thanks
edit: or, if that's not possible, how can I force the frame to refresh the first time I 'show' it?
$('#iframe').css("display", "block").attr("src", "gallery.php");
精彩评论