Solved

Points for COBOLDinasour

Posted on 2004-04-27
6
213 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
  • 3
  • 3
6 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Author Comment

by:mohmedsh
Comment Utility
:) then  we have no more options. Thanks
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
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
Comment Utility
i do appreciate your help :)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
error email attachment VB2010 5 27
Owl Carousel 6 141
video playback resume on webpages 2 59
Lines Not Lining Up 2 48
When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now