Taustin Powers Posted August 10, 2006 Share Posted August 10, 2006 I have it validated for xhtml 1.0 transitional. I used an iframe in the layout. Can a site be xhtml strict compliant if it contains an iframe? The reason I am using it so far (I'm still new to html, mind you) is that I want the top and menu section of the page to always be there and NOT reload every time a different content is selected from the menu. Are there other ways to achieve this, without an iframe? (I know about regular frames, but find that option even less appealing...)This is what it looks like:http://www.theletter3.com Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 10, 2006 Share Posted August 10, 2006 You could use PHP and include the navigation in an external page, and when you click on a link it goes to a specific If statement with the stuff you have in the iframe in it.But that would require PHP.There is a way to do it with some javascript and CSS also. Dynamic Drive tutorialThat link up there shows you how its done. You basically just copy and paste, and change it to your liking. Link to comment Share on other sites More sharing options...
aspnetguy Posted August 10, 2006 Share Posted August 10, 2006 if you change the extension from .html to .shtml you can use SSI to include your navigation Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 10, 2006 Share Posted August 10, 2006 if you change the extension from .html to .shtml you can use SSI to include your navigationHrmm, hows that work exactly? Is there a w3schools tutorial on it? Link to comment Share on other sites More sharing options...
aspnetguy Posted August 10, 2006 Share Posted August 10, 2006 probably not...once you change the extention you can include files like this <!-- #include file="filename.html" --> Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 10, 2006 Share Posted August 10, 2006 Thats awesome, lol.I never knew that. Link to comment Share on other sites More sharing options...
Jonas Posted August 10, 2006 Share Posted August 10, 2006 probably not...once you change the extention you can include files like this<!-- #include file="filename.html" --> http://httpd.apache.org/docs/2.2/howto/ssi.htmlIt's <!--#include ... -->. If you have a space before the # sign, it's just treated as a regular comment I think... Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 Also, it's worth noting that the server specifically needs to allow SSI. Not all of them do. 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