开发者

iFrame onresize in safari

The onresize function doesn't seem to run in Safari (3.03 beta windows edition) when an iFrame is resized by its parent. Is this a known bug, and is there any way to get around it besides a timer-based check?

The iframe and its parent are in the same domain, so calling the resize function from the parent would be doable except that the apparent means of calling a child frame's function - iframeObj.function(), where开发者_JAVA技巧 iframeObj is an object reference to the frame, only seems to work in IE and Opera; FF, Safari and Chrome all fail to run the function.

Thanks in advance for any help.


Though I still can't get the onResize function to run, I've worked around it using the second method - the correct function call is iframeObj.contentWindow.function(), for reference.

Though it's no longer so important, any info on the primary question would yet be appreciated.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜