Link to home
Start Free TrialLog in
Avatar of mohmedsh
mohmedsh

asked on

Points for COBOLDinasour

Thanks for your help in https://www.experts-exchange.com/questions/20967171/display-contents-from-other-urls-within-my-pages.html
please reply here so i can transfer the points to you.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

One other idea occurred to me, but I don't know how feasible it is. If you do the iframe this way:

<iframe id="theIF" src="" style="height:1px;width:100%"></iframe>

Then you could set the height dynamically by doing the links this way:

<a href="somesite.com" target="theIF"
onClick="document.getElementById('theIF').style.height='700px'">
click for somesite</a>

You could set the height to the maximum for pages on that site.  Like I said I'm not sure of feasibility.  If there are a lot of sites, or there is a big rnage of page lengths on some of them it would probably be worse than scrolling, but if there is some consistency, it might be an option.  Of course they might change the page layouts and you would have to make changes when they did but it is a possibility.

Cd&
Avatar of mohmedsh
mohmedsh

ASKER

Hmmm, that will be the same as setting the hight directly in the iframe.
I have another idea but i am not good in javascript. what is i opened a new browser window, and opened the url i want into it. In that case i think i can get the hight of the page within that browser. Fine if that is correct then we can pass the hight to the original browser and resize the iframe to it.
Is that possible?????
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:) then  we have no more options. Thanks
Glad I could help explore it; perhpas the next generation of browser will find a way to balance the need for security and privacy; with the need of developers to try and please outr clients.  

Thanks for the A. :^)

Cd&
i do appreciate your help :)