Yet another cross-domain iFrame question! I’ve search everywhere and believe this is impossible, so here goes:
The scrollbars of an iframe are part of that iframe’s window element, so because of the same origin policy I can’t directly style them. At first I thought I’d be clever and create a scrollable DIV using jQuery UI draggable event within a “track” container. I setup a dummy scrollbar and everything was working, excepting being able to scroll the iframe… again because of the same origin problem.
So..
- Is there a way to style an iframe’s scrollbars if the iframe content is from a different domain?
OR
- Is there a way to scroll an iframe if the iframe content is from a different domain?
Thanks!
Assuming you can figure out the size of the site somehow, you could set the size of the iframe to that content’s size…
Of course, then you need to figure out the size of the site periodically…