So Ive been trying to find a way to autoresize a Iframe that works in IE for PC and Safari for Mac. I had a very good fuction that works great but doesnt on Safari. I found this fucntion that seems to work in both of them and does a good job. The problem is when I use it it seems to break my dir structures, links and image paths. If I try and view the page on my local testing server on the same machine all the images are broke caz its not putting one of the main directory folder in the path. If I upload the page to the web the images work ok since they dont need that folder for the live web. But all the links are also losing that main root folder so all the links are broke on testing server and live. Any idea how to fix this ?
Heres the function.
[CODE]function autoResize() {
var dest = document.getElementById(‘frame_main’);
var source = window.frames[0].document.body.innerHTML;
dest.innerHTML = source
}
And in the body in the Iframe tag is this
[CODE]<div id=”frame_main”>
<iframe onload=’autoResize();’>
</div>
Thanks