Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 03-25-2008, 08:44 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2005
Posts: 66
OS: WinXP home


question on <iframe>

ok i'm working on a website for a friend. (don't know why i agree'd but eh) anyway, i wanted to make it so as the nav bar stayed permanently at the top. (i already know how to do this using CSS so thats not the problem)

However, i had wanted to open up a forum beneath the naviagation bar for the forum section. And have it so as the nav bar STAYED at the top even while navigating the external forum.

Now i know that i can open the external thing using <iframe> but if you click on any of the navigation within that page, it redirects you to the full page Is there any way to fix this? (i have no time stamp on when he wants it done as its just a favour thing, but its starting to annoy me)
__________________
Mobo: Asus Striker II Formula skt 775 Ram: 2x Corsair 2GB DDR2 PC2-6400 800MHz in dual channel Processor: intel q6600 quad core, 2.4ghz HD: 2 x Maxtor 500GB 1x Maxtor 1000gb PSU: Tagan 700w ATX2 Power Supply Sound: Asus soundcard that came with mobo GPU: 2x MSI 7900 GT/GTO 512mb memory in SLi
wowfood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Sponsored Links
Old 03-26-2008, 12:29 AM   #2 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 291
OS: XP SP2 & Vista


Exclamation Re: question on <iframe>

Hi wowfood,

I have never used iframes in a page before so I did a little searching. Looks like you can target the iframe with your navigating links. You have to first give your iframe a name. Example below.

Code:
<iframe
name="iframe"
src="http://www.techsupportforum.com"
</iframe>
Then you target that iframe within your links. Check it out.
Code:
<a href="http://www.techsupportforum.com/test" target="iframe">Super Sweet Help</a>
As long as you don't use target="_top" within your links the following pages will stay within the iframe. Now I could be totaly wrong about this since I have never used it. But it should work.. in theory, right?

Give it shot and let me know. Maybe someone with iframe experience can chime in and give me a yay or nay
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-27-2008, 05:43 AM   #3 (permalink)
Registered User
 
Join Date: Dec 2005
Posts: 66
OS: WinXP home


Re: question on <iframe>

thanks jaxo that could work, but like i said i'm trying to get this so i can have an external forum displayed, i don't think i have enough knowledge to code an entire forum just so i can make all the links point within the iframe :P
__________________
Mobo: Asus Striker II Formula skt 775 Ram: 2x Corsair 2GB DDR2 PC2-6400 800MHz in dual channel Processor: intel q6600 quad core, 2.4ghz HD: 2 x Maxtor 500GB 1x Maxtor 1000gb PSU: Tagan 700w ATX2 Power Supply Sound: Asus soundcard that came with mobo GPU: 2x MSI 7900 GT/GTO 512mb memory in SLi
wowfood is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-27-2008, 11:22 AM   #4 (permalink)
Design Team Member
 
Jaxo's Avatar
 
Join Date: Feb 2008
Location: Deming, NM
Posts: 291
OS: XP SP2 & Vista


Question Re: question on <iframe>

wowfood,

I will try and test this a little later today. Sounds like if you just point your navigation to the iframe every link you clink on inside the iframe will stay in it. With the exception if the link has target="_top" option. Then it will open over everything. Curious if what I'm writing is right or not . I'll try and give it a test later.
Jaxo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 03-27-2008, 03:59 PM   #5 (permalink)
Design Team Member
 
Redcore's Avatar
 
Join Date: Aug 2007
Location: Jamestown, CA
Posts: 498
OS: WinXP

My System

Send a message via AIM to Redcore Send a message via MSN to Redcore Send a message via Yahoo to Redcore
Re: question on <iframe>

Why use iFrame? This seems best suited for general frames.

index.html - this is what compiles the frames
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<frameset rows="80,*" frameborder="no" border="1" framespacing="0">
  <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
  <frame src="forum.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
Now create "top.html" with your navigation stuff and "forum.html" can be replaced with whatever forum you want to link to.
__________________
Free Resources
PC Protection - Comodo Firewall | AVG Anti-Virus | WinPatrol | Ad-Aware | Spybot S&D | SpywareBlaster |
Web Design/Programming - KompoZer
(Editor) | Paint.NET (Graphic) | GIMP+GIMPShop (Graphic) | FileZilla (FTP Client) | Free Hosting |
Redcore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

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



All times are GMT -7. The time now is 01:32 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82