Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I Frame x and y loction of the targeted url

Posted on 2007-11-26
3
Medium Priority
?
183 Views
Last Modified: 2012-05-05
Hello,
I have an Iframe in my page. What i want to do with that iframe is post a url on another webserver, but only a portion of that page information. I would not like to show anything else. How can I tell the opening url to go to that location x y on that page?
0
Comment
Question by:eteran
  • 2
3 Comments
 
LVL 5

Expert Comment

by:mah8473
ID: 20354663
I don't think it's possible to do what you are asking.

Look at it like this.... is there anything you can add to a url when typed into a browser address bar that will open the targeted page and only display a specific portion of that page?? The answer (as far as I know) is NO!  not unless the tageted page is going to handle what is displayed based on the passed in query string.

Essentially the iFrame is just opening another page within the current page. If the page you are loading into you iframe is expecting querystring values and then has some kind of logic to modify what is rendered then you may be able to simulate this????
0
 

Author Comment

by:eteran
ID: 20354685
Well can I position my scoll bars the way I need them?
0
 
LVL 5

Accepted Solution

by:
mah8473 earned 2000 total points
ID: 20354706
you could use the "scrollIntoView" method but that only aligns the object to either the absolute top or bottom of the object (ot is best effort to get close to top or bottom).....that's probably not gonna help you much.

I take it you don't own the page you are targeting into the iframe? if you do, you could (as I suggested) add some logic to it to accept a querystring and then only display a cut down version of that page that is the specific part of the page that you want. But there's nothing that you can do to the iFrame itself that would target a specific part of the page it contains
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

885 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