Click here to Skip to main content
14,391,757 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,
I am working on site where I am using iframes for dynamic html files.
Each html file having own length and my iframe height is fixed.
How can I set auto height for each page coming in iframe?

Umesh Daiya
Web Developer
Bikaner Rajasthan
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Why don't you just use AJAX and then load the content of the webpage on a DIV by doing so:
document.getElementById("divID").innerHTML = contentReturned;
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100