?
Solved

I Frame x and y loction of the targeted url

Posted on 2007-11-26
3
Medium Priority
?
181 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
[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
  • 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

719 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