Hi there
I am working on a site that has an iframe. This iframe is retrieving data which is external to the website.
We want the iframe to resize based on the length of content within the iframe.
However as it is from an external source we cannot detect the length - browser security restrictions.
So one thought is :
1. Get the content of the iframe.
2. Copy content into a hidden iframe.
3. Detect the height of the hidden iframe.
4. Update the height of the visible iframe.
I cannot however find a way of extracting the content of the iframe.
Has anyone got any ideas ??
Thanks
Nigel Wilson
Christchurch Web Design
I am working on a site that has an iframe. This iframe is retrieving data which is external to the website.
We want the iframe to resize based on the length of content within the iframe.
However as it is from an external source we cannot detect the length - browser security restrictions.
So one thought is :
1. Get the content of the iframe.
2. Copy content into a hidden iframe.
3. Detect the height of the hidden iframe.
4. Update the height of the visible iframe.
I cannot however find a way of extracting the content of the iframe.
Has anyone got any ideas ??
Thanks
Nigel Wilson
Christchurch Web Design