Solved

I Frame x and y loction of the targeted url

Posted on 2007-11-26
3
173 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
Comment Utility
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
Comment Utility
Well can I position my scoll bars the way I need them?
0
 
LVL 5

Accepted Solution

by:
mah8473 earned 500 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 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

16 Experts available now in Live!

Get 1:1 Help Now