Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Linking to an IFrame.



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
HeadleyGrange



Joined: 29 Oct 2005
Posts: 16

PostPosted: Sat Oct 29, 2005 6:42 am    Post subject: Linking to an IFrame. Reply with quote

OK this is kind of tricky, I don't even know if it is possible. I wan't to link a small picture like a thumbnail and open the lrger version in an IFrame on a differant page.

Lik the tumbnail is on news.html you click the little picture and it opens picture.html and shows the big picture in <!iframe>pictureframe. Make sense?
Back to top
View user's profile Send private message
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Sat Oct 29, 2005 7:47 am    Post subject: Re: Linking to an IFrame. Reply with quote

I'm not entirely sure, but if you make the link like the follow it should work:

<A HREF="page.html" TARGET="iFrameName">

You should then make the iFrame source like this:

<IFRAME NAME="iFrameName">

I think that should do the trick, but on the other hand, I haven't done this in a very long time. I might have forgotten how it exactly works and made a mistake in this.

Welcome to DEVPPL! Hope you're here to stay!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
HeadleyGrange



Joined: 29 Oct 2005
Posts: 16

PostPosted: Sat Oct 29, 2005 7:49 am    Post subject: Re: Linking to an IFrame. Reply with quote

Thank for the help i will try it in a moment, ive been doing webpages here and there for a couple years and usually i can figure out how to do somthing if i am stuck but this is just picking me apart... lol, i'll let you know if it works. thanks.

nope dosn't work just opens the picture in its own window... this sucks.

is what i need is it to open the whatever.html and then load the picture in the iframe, is that possible?
Back to top
View user's profile Send private message
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3589
Location: Sweden

PostPosted: Sat Oct 29, 2005 12:23 pm    Post subject: Re: Linking to an IFrame. Reply with quote

I've tested this code, and it works:
Code:
<html>
<body>

<a href="image.jpg" target="pencil">
<img src="image.jpg" alt="" width="20" height="20" border="0" />
</a>

<iframe name="pencil" width="400" height="200"></iframe>

</body>
</html>
Back to top
View user's profile Send private message Visit poster's website
HeadleyGrange



Joined: 29 Oct 2005
Posts: 16

PostPosted: Sat Oct 29, 2005 8:54 pm    Post subject: Re: Linking to an IFrame. Reply with quote

i don't think u are understanding the iframe is NOT on the same page as the thumbnail it is on a DIFFERANT page, i need the bigger picture to be displayed in an iframe on the DIFFERANT page not the same one as the thumbnail, make sense?
Back to top
View user's profile Send private message
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Sat Oct 29, 2005 9:22 pm    Post subject: Re: Linking to an IFrame. Reply with quote

instead of using this:

TARGET="blah"

try using:

TRAGET="blah#iFrame"

Does that work? รต_o
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
HeadleyGrange



Joined: 29 Oct 2005
Posts: 16

PostPosted: Sat Oct 29, 2005 9:41 pm    Post subject: Re: Linking to an IFrame. Reply with quote

dude it worked!!! lol, thanks now i have a smaller problem... lol i need it to not open a new window i tried target="_top#pictureframe.html#pitcureframe" but that didn't work... any ideas?
Back to top
View user's profile Send private message
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Sat Oct 29, 2005 9:45 pm    Post subject: Re: Linking to an IFrame. Reply with quote

Crap... I don't know about that man. Let's wait till Razz (webmaster) comes around this topic again Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
HeadleyGrange



Joined: 29 Oct 2005
Posts: 16

PostPosted: Sat Oct 29, 2005 9:51 pm    Post subject: Re: Linking to an IFrame. Reply with quote

nevermind it didn't work... sorry i already had picturetest.html pointing to use pictureframe.html in the iframe i just took it out and it didn't work... sorry, i'm so lost this sucks!... lol
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap