jquery - iframes - auto resize to heigh of content? -


i have built page has iframe in it. have page header , footer displayed on page, shown way of include file statements. iframe between header , footer , set display page not on website.

the inserted page has hyperlinks on page user can click, , height of content displayed changes.

is possible set iframe auto size frame window page size of inserted page displayed, if changes. have had set height of iframe large display biggest page of content user can display using frame (800). problem pages shown in frame small, part users dont see page footer.

one last point, dont want use scroll bar achieve above.

is possible this, , if how?

if pages on same domain, it's relatively straight forward. if it's on different domain, can't done without co-operation other sites.

the problem javascript prevented accessing frames/iframes other domains. solution have iframed page create own hidden iframe. iframed page loads hidden iframe specially crafted url pointing page on original server. hidden page detects specially crafted url, , parses data, such size of iframe. because hidden iframe on same domain main page, can access javascript in main page going parent.parent.thing.

for more information, google cross-domain iframe communication.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -