Solved

Points for COBOLDinasour

Posted on 2004-04-27
6
223 Views
Last Modified: 2010-04-06
Thanks for your help in http://www.experts-exchange.com/Web/Web_Languages/Q_20967171.html
please reply here so i can transfer the points to you.
0
Comment
Question by:mohmedsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10932037
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&
0
 
LVL 1

Author Comment

by:mohmedsh
ID: 10933692
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?????
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 400 total points
ID: 10933921
I think that still gets a security violation.  The height is in the DOM for the opened page, but the scripting to reference it would still have to come from a page on your site, so it would still be cross-domain scripting.  :^(

Cd&
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:mohmedsh
ID: 10933968
:) then  we have no more options. Thanks
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 10934083
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&
0
 
LVL 1

Author Comment

by:mohmedsh
ID: 10934382
i do appreciate your help :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TripAdvisor Widgets on WordPress Websites 10 305
installing and using WTP plugin eclipse MARS 3 148
Grunt No Clean Targets 6 299
Windows Tool to Build Android and iOS App 3 147
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question