HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
index page with FRAMES dont work in IE on PC
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
Mads



Joined: 12 Jul 2007
Posts: 3

PostPosted: Thu Jul 12, 2007 1:39 am     index page with FRAMES dont work in IE on PC Reply with quote

I am a graphic designer trying to make a very simple website using html in dreamveawer, i am not a webdesigner so im a bit of a code-dummy.
I am making an index-page with 3 rows and a drop-down menu in the upper row. the page works fine in firefox (mac and pc), safari (mac), and my own IE for mac.
but on a pc in IE nothing shows up, if i load the pages supposed to be in the frames seperately they look fine, so there must be a problem in my codes for the frameset, my index-file. Or does frames just not work in IE anymore!?
Please copy my codes and take out the errors if posibble. Thanks!

This is my website, only drop-down-links Ole poulsen, widex and Morsø works, the rest are blank so far. and using IE+PC unfortunately creates a blank page:
http://madsjakobpoulsen.dk/test/

This is the codes from my index-page / the frameset:

<!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>MADS JAKOB POULSEN&trade; Graphic design etc.</title>
<link rel='icon' type='image/png'href='favicon.ico' />
</head>

<frameset rows="65,580,30" cols="*" framespacing="5" frameborder="no" border="5" bordercolor="#FFFFFF">
<frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" />
<frame src="bottom.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>[/b]
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8301
Location: Castle Pines North, CO USA

PostPosted: Thu Jul 12, 2007 3:35 am     Reply with quote



Try something more like
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 3</title>
</head>

<frameset rows="65,580,30">
   <frame name="topFrame" scrolling="no" noresize="noresize" />
   <frame name="mainFrame" scrolling="no" noresize="noresize" />
   <frame name="bottomFrame" scrolling="no" noresize="noresize" target="mainFrame" />
   <noframes>
   <body>

   <p>This page uses frames, but your browser doesn't support them.</p>

   </body>
   </noframes>
</frameset>

</html>
But keep in mind that you are designing it seems for a specific browser height. (Add up the three row heights.) What is the browser supposed to do with that extra space?

Usually it would be something like
Code:
<frameset rows="65,*,30">
That way the browser knows what to do with the extra space.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts | MerchantAccount PodCast
Mads



Joined: 12 Jul 2007
Posts: 3

PostPosted: Thu Jul 12, 2007 4:38 am     Doesn't work either. Reply with quote

Hey. Thank you for the quick reply.
However it doesn't work with the new codes either.
Tried adding the sources of each frame like you can see further down.
The frames seem to be working fine but both before and now, the problem is that the pages that should be loadend into top, main and bottom frames doesn't show at all. am i defining the source wrong, or!? i dont know.. -still works perfectly in firefox..

<frameset rows="65,*,30">
<frame src="top.html" name="topFrame" scrolling="no" noresize="noresize" />
<frame src="main.html" name="mainFrame" scrolling="no" noresize="noresize" />
<frame src="bottom.html" name="bottomFrame" scrolling="no" noresize="noresize" target="mainFrame" />
<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8301
Location: Castle Pines North, CO USA

PostPosted: Thu Jul 12, 2007 12:31 pm     Reply with quote

The same code works for me here using three simple HTML files. I created a copy of your source code using your HTML files and it does not work.

It seems to be something in one (or more) of your HTML files. If you create a simple HTML frame / file with just a few words in each and create the same, does that seem to work? If so, it seems that something might be wrong with your other code.

International Web Developers Network might be able to notice. I saw an error or two in the top frame but nothing that I would say an issue that would cause this.

_________________
Corey
Toll Free Fax Numbers | Merchant Accounts
Mads



Joined: 12 Jul 2007
Posts: 3

PostPosted: Fri Jul 13, 2007 3:52 am     Error located!! Reply with quote

Hey.
I did what you said and started over (again) and re-builded it step by step, and yes it worked with other html-documents. So the problem couldn't be the frames..then i remade my website checking every step on my 1990-laptop with explorer.
The error was in the css-file. without css.files it worked. So i tryed erasing the css-codes one by one.
the top of the css-code said:

html, body {
font-family : Verdana;
font-size : 10pt;
color : black;
position : relative;
margin : 0;

when taking out:

position : relative;

The whole thing works!
I dont know if it's worth anything for you guys or if i'm just a dummy, a releaved and happy one now, but that was the error.
Thank you for the replys Corey!
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8301
Location: Castle Pines North, CO USA

PostPosted: Fri Jul 13, 2007 10:42 am     Reply with quote

Glad it all worked out. I had tried it as well and knew it had to be something in there. Good luck with the site!

_________________
Corey
Toll Free Numbers | Merchant Accounts
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial