Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 01-23-2007, 11:44 PM iFrame Question
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
I have a page called index1.html. On index1 there is a link to index2.html. index2 has an iframe on it. When a user is on index1 and they click a link, Contact, I want the page to load index2.html and load contact.html inside the iframe. No src= will not work with this because index2 is like a master page (only in xhtml not asp). Any tips on how to make this work?

Thanks.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
 
Register now for full access!
Old 01-24-2007, 01:49 AM Re: iFrame Question
Banned

Posts: 905
Name: Travel Agent
Trades: 0
Are you trying to link from a list of links to an iframe on the same page, or dual iframe linking?
travelagent is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 06:40 AM Re: iFrame Question
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
So here's what I understand:
index1.html has 2 links: index2.html (normal) & index2.html (with contact details)
You want a user clicking on the link to index2.html (normal) to go to index2.html with whatever information on.
But if the same user clicked on the link index2.html (with contact details), you want them to go to index2.html (normal), displaying contact details instead of the normal details on the page.
Right?
RanaD is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 09:03 AM Re: iFrame Question
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Im trying to have the link on index1 to link to index2 but display the contact page in the iframe index2.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 01-24-2007, 09:31 AM Re: iFrame Question
Mattmaul1992's Avatar
Ultra Talker

Posts: 486
Name: Matt
Trades: -1
Were is this i-frame placed. Could you possible link us to what you already have so we can get a better understanding of exactly what you want.
Or is all you want an i-frame on index1.html that shows index2.html but at the same time you want a link on index1.html to index2.html?

Last edited by Mattmaul1992; 01-24-2007 at 09:33 AM..
Mattmaul1992 is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 01:42 PM Re: iFrame Question
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Index 1
Code:
<html>
<body>
body text
<a href="index2.html">Index 2</a>
</body>
</html>
Index 2
Code:
<html>
<body>
body text
<iframe name="iFrame1" width=498 height=476 src="" scrolling="auto" frameborder="0"></iframe>
</body>
</html>
Contact Page
Code:
<html>
<body>
=Contact form=
</body>
</html>
i want the index 2 link on the index 1 page to go to index2.html and load the contact page inside the iframe on index 2
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 01-24-2007, 03:13 PM Re: iFrame Question
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
It would be better to avoid iframes entirely and just give users a link to the contacts page. If you have to have it your way, I would still suggest NOT using iframes, but a CSS alternative that works like an iframe:

http://www.aplus.co.yu/web-dev/inser...her-html-page/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 03:20 PM Re: iFrame Question
RanaD's Avatar
Super Talker

Posts: 139
Name: David
Trades: 0
You're being exceptionally cryptic.

From what I see, I don't think an iframe is necessary, as index2.html is only used for the contact form (as opposed to framing various different pages). If it was necessary (for some reason beyond my logic), surely src= would work, even in xhtml (trust me, I have a page in xhtml from which I load another site with a menu of my site at the top).

I'm not fond of iframes. They're bad for various reasons. If you can do Server Side Includes on your hosting account, use them instead. (If you really don't want to just put the form in your index2.html file)

UNLESS you're trying to hide the code of your contact form... In which case you should try something else that I don't know of.

Now come on, don't let us think twice, trying to guess what you're really trying to achieve, and then trying to figure out how to help you. Tell us the story, the whole story and nothing but the story, so help my Codebook.
RanaD is offline
Reply With Quote
View Public Profile
 
Old 01-24-2007, 10:20 PM Re: iFrame Question
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
I did tell you the story but I can't link you to the site since it is a client site.
An iframe is necessary (or CSS iframe like LadynRed mentioned).
I am not only trying to load the contact page into the iframe I want to load more pages (different page loaded for each link). I didn't say this before because I didn't think it was relevant.
The index1 page has more than one link.
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!

Last edited by Silent77; 01-24-2007 at 10:21 PM..
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 01-25-2007, 05:00 AM Re: iFrame Question
saadatshah's Avatar
Extreme Talker

Posts: 215
Name: Syed Saadat Ali
Location: Lahore, Pakistan
Trades: 0
use querystring to send a parameter and then write a javascript method to load the page (sent throught querystring) in the iframe.
__________________
- -- --- ---- ----- ------ ------- ---------------
If you have knowledge, let others light their candles in it.
saadatshah is offline
Reply With Quote
View Public Profile Visit saadatshah's homepage!
 
Reply     « Reply to iFrame Question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.74710 seconds with 12 queries