Solved

I Frame x and y loction of the targeted url

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unexpected End of File 11 80
Change how page is organized 3 47
Html using "Or" in condition 3 36
HTML question 2 33
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

731 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