Help - Search - Members - Calendar
Full Version: Iframe Help?
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
the next flcl
Is it possible to show a page through an iframe not at the beginning of the page?

such as
begging
---------------
HTML PAGE
===============
content
content 1
content 2
===============
--------------

to
---------------
HTML PAGE
===============
content 2
===============
--------------

MrTouz
i kind of not understand what you really are looking for.
If you could explain a little more, even show a page / preview would be best !
the next flcl
Like if I were to make an IFRAME of this page it would show like this

Click to view attachment

Is it possible to not start an IFRAME from the top of the page, such as

Click to view attachment
MrTouz
So you are saying that you want to open an IFRAME but when it opens it does not open the TOP of the page that is being OPENED but a specific area.

If it is what you are asking than YES it is possible. To do that - the place that you want to be opened needs to have an ID so you can call it once the iframe is opened for example :

this is your iframe code :

CODE
<iframe width="700" height="400" name="myiframe" src="mypage.html#some"></iframe>


and this is your html page :

CODE
Helo, welcome to my site.. this is this and that and sometimes we do this and that and also this and tht but this and that is always this and that of cours if this is that than that is this with this inside that over that behind this with that on top of this its that plus this when this is over than this is that over plus some over over this and that.<br>
<br>
<div id="some">Here</div>
<br>
Also here is ther and there is here when that is there with here is this over there and here and that and this is this and that over here over there with there over here on top of there this that here if this is that there is here.


What it does, if you look closesly you will see that the iframe SRC page (the page that is being opened is :

mypage.html#some

And inside my html page i have a DIV with the ID 'some'

What the iframe code does is instead of opening the top of the page called mypage.html its openes mypage.html but at the SOME location, in that case it will start by :

CODE
<div id="some">Here</div>
<br>
Also here is ther and there is here when that is there with here is this over there and here and that and this is this and that over here over there with there over here on top of there this that here if this is that there is here.


People will be able to scroll top/bottom so they can go up and see the rest and they can go down and see the rest.
Jetteh22
QUOTE
Also here is ther and there is here when that is there with here is this over there and here and that and this is this and that over here over there with there over here on top of there this that here if this is that there is here.


OFF TOPIC- That strangely made sense to me... :S And made me laugh.
MrTouz
lmao, at a certain point when i wrote it down... sometimes it did make a lot of sense even tho its a nonsens text.
Its the next generation Lorem Ipsum (my new project tongue.gif)
the next flcl
Is that the only way :/ because I already figured that out..

Oh well, thank you for your help =)
Banjo
Have you tried using Javascript?
MrTouz
Well if you were a little bit more specific i could try finding something new... i mean, where is the src="" from ? you made the page ? or is it from an external website ? you own this external website ? because there are plenty other way to select specific info from a page without using iframes.

Or, if you want.... don't use iframes... use php includes... its a lot better !
Andrew
He probably wants to include someone elses site in an iframe and pretend it's his content, so therefore he wouldn't be able to edit the site to add the div tag.
Banjo
QUOTE(Trippin7464 @ Jun 28 2008, 05:31 AM) *
He probably wants to include someone elses site in an iframe and pretend it's his content, so therefore he wouldn't be able to edit the site to add the div tag.


Thats a assumption you don't know that.

Anyway you can use Javascript to scroll down a certain amount of pixels, percent in a iframe or if they have divs in there page you can scroll down to those as well when the page loads.
Andrew
Well considering he refuses to use the ID option, it's a pretty damn good one.
NaRzY
I am going to side with Trippin7464 on this one. It does seem a tad odd.

Jacob.
IamShipon1988
Is it possible to do something like page mapping. I know that there is such a thing as image mapping and you can give an exact point as keypoint, but not sure about point on a page. The only thing I can think of is <a name=" "> callout just as they have pointed out before.
MrTouz
can't IMG have <img name="" ?
Bogey
VIA PHP, it MIGHT be possible... like using GD converting the page contents to an image and then using an image mapping thing...

Hard tedious work if you really want to do it... but than... I don't think you would be able to use an iFrame to show that part but just have the image of that part be shown.

EDIT: You wouldn't need to convert anything to image... PHP has a handy function that can take screenshots of pages. Aren't you glad?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.