1. Whether you should use them is up to you. In general, avoid like the plague.Vilham wrote:
http://www.w3schools.com/tags/default.aspjsnipy wrote:
There is a spec ... http://www.w3.org/TR/xhtml1/Vilham wrote:
Also is there a XHTML api like the java api?
eg http://java.sun.com/j2se/1.5.0/docs/api/
was actually what i was looking for. Thanks anyway.
I have one big question for you guys about framesets:
1. Should i use them? eg for a table of contents down the left side or along the top, so that it stays the same throughout the website.
2. If i should how do i make it work like a table of contents. So far i can only make it change what is in its own frame and not what is in the other frame.
If you cant answer no.2 thats fine, its just that i looked around all last night for the answer, i even took my lecturers example with such a working case and opened it in note pad but couldnt find the section that showed it as it was using javascript.
2. You need to specify a target, eg, say you have the frameset:
index.html:
Code:
<frameset cols="10%,*"> <frame src="contents.html" name="contents"> <frame src="page1.html" name="mainbody"> </frameset>
contents.html:
Code:
... ... <a href="page1.html" target="mainbody">Page 1</a> <a href="page2.html" target="mainbody">Page 2</a> ...and so on... ...
The way I handle 'common page content' like 'contents bars' and so on is to generate them with javascript - this could be a simple as a single function call that looks something like:
contents.js:
Code:
... document.write("... <a href="page1.html" target="mainbody">Page 1</a> <a href="page2.html" target="mainbody">Page 2</a> ...and so on... ..."); ...
page1.html:
Code:
... <script src="contents.js"></script> ...
Last edited by Scorpion0x17 (2007-07-16 20:46:20)