I have been trying to resize the iframe to its contents so that the frame doesn’t need scrollbars but I run into problems if the page being loaded isn’t on the same domain as mine as I can’t then re-set the depth.
I have been poking around and wondered if I could set the iframe to overflow into the main page which would then mean that I could set the scrollbars to no and just leave it at that.
Is this possible ? and can anyone point me in the right direction.
It would be brilliant if you could as I have been battling this one for ages and no-one else has been able to help.
As I said I have been able to resize the Iframe onLoad but only if the page is on the same domain as mine. Our search and diary pages are on a different domain and it is here that I struggle as it throws a cross-site scripting something or other.
You should be able to grab “remote” context information, such as the height, etc. with this hack.
I know that cross-domain script security is needed, but ultimately makes our jobs THAT much more difficult. I wonder if it’s worth investigating disabling that feature (if it’s even possible) for trusted domains? Certainly help with intranet-development efforts, which it sounds like this is what you’re looking for.
Warrants some more testing/playing-around me thinks…