Solved

I Frame x and y loction of the targeted url

Posted on 2007-11-26
3
174 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

910 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

20 Experts available now in Live!

Get 1:1 Help Now