Alexancho Posted September 16, 2009 Report Share Posted September 16, 2009 The problem starts with simple cod: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>frames_tar_home_index</title> <frameset cols="700,250" > <frame src="home.html" name="content" /> <frame src="menu.html" name="menu" noresize="noresize" border="0" frameborder="0" scrolling="auto" bordercolor="#7DBEFF" /> </frameset> </head></html> It works on my computer, but when i uploaded the file it doesn't work:http://webdesign-gold.200u.com/Examples/fr...dex_frames.htmlhttp://webdesign-gold.awardspace.biz/learn...ple3/index.htmlI tried to check another page. I copied cod from here:http://www.yourhtmlsource.com/frames/basicframes.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><title>My First Frame Page</title></head><frameset cols="30%, 70%"><frame src="nav.html"><frame src="content.html"></frameset></html> and created simple pages nav.html and content.htmlIt works here:http://webdesign-gold.awardspace.biz/learn...frames_try.htmland doesn't work here:http://webdesign-gold.200u.com/Examples/fr...frames_try.htmlbut i have no problems with another pages in both these hostings:http://webdesign-gold.200u.com/Examples/frames/content.htmlhttp://webdesign-gold.200u.com/Examples/frames/content.htmlWhat's wrong? Link to comment Share on other sites More sharing options...
Ingolme Posted September 16, 2009 Report Share Posted September 16, 2009 The server is putting advertisement codes that are interfering with your frames. Link to comment Share on other sites More sharing options...
jeffman Posted September 16, 2009 Report Share Posted September 16, 2009 You have a whole bunch of stuff before your doctype, for one thing. A div, a table, some scripts. None of that stuff is supposed to be there. It must come inside the <html> tags, and the div and table must come inside the <body> tags. And none of it should really be in a frameset document at all, unless you put it between <noframes></noframes> tags. I can't imagine how browsers will try to interpret this document.Your first working example doesn't have that stuff. It's very simple, like most frameset documents are. Link to comment Share on other sites More sharing options...
jeffman Posted September 16, 2009 Report Share Posted September 16, 2009 The server is putting advertisement codes that are interfering with your frames.Ah. Isn't there a way you can control the positioning of that? Or is it a really bad server? Link to comment Share on other sites More sharing options...
Alexancho Posted September 16, 2009 Author Report Share Posted September 16, 2009 But if it so for both hostings why it is work in this case:http://webdesign-gold.awardspace.biz/learn...frames_try.html ? Link to comment Share on other sites More sharing options...
Ingolme Posted September 16, 2009 Report Share Posted September 16, 2009 Ah. Isn't there a way you can control the positioning of that? Or is it a really bad server?There is actually one mean way to get rid of everything the server does.You have to wait until the page is loaded (using the onload event) and then execute a function that writes your entire page using document.write() Link to comment Share on other sites More sharing options...
Ingolme Posted September 16, 2009 Report Share Posted September 16, 2009 But if it so for both hostings why it is work in this case:http://webdesign-gold.awardspace.biz/learn...frames_try.html ?The awardspace server doesn't appear to be placing any ads on your page. Link to comment Share on other sites More sharing options...
GermanPrince Posted September 16, 2009 Report Share Posted September 16, 2009 (edited) You can't have items before the <!DOCTYPE> tag. Edited September 16, 2009 by GermanPrince Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now