🔒 Locked
[web] External HTML
Advertisement
Original Post
Would frames be an option? If not, read this article about alternate ways. (next time try googling for it, this article appeared on top when I searched for "include html")
Much luck!
Much luck!
Yep, frames can be a nice way to cut down on maintenance time, especially if you're changing the main navigation.
Frames, however, do cause problems with some older browsers, and might screw up search engines. I don't know if there's a better way to do this yet (without some sort of scripting, anyhow). iFrames exist, but I don't know what they are or how they work.
That being said, most people don't have any problems with frames.
Here's the source for one of my sites:
In particular, I don't care if some people can't view the site, and I want to spend as little time as possible changing it.
Frames, however, do cause problems with some older browsers, and might screw up search engines. I don't know if there's a better way to do this yet (without some sort of scripting, anyhow). iFrames exist, but I don't know what they are or how they work.
That being said, most people don't have any problems with frames.
Here's the source for one of my sites:
<html><head><title>2004 McDermott Scholars</title><link rel="stylesheet" href="style.css" type="text/css"></head><!-- Frame Layout --><FRAMESET COLS="203,*" border=0 frameborder=false> <FRAME SRC="left.htm" NAME="LEFT" SCROLLING="NO" NORESIZE> <FRAME SRC="main.htm" NAME="MAIN" SCROLLING=AUTO NORESIZE></FRAMESET></html>In particular, I don't care if some people can't view the site, and I want to spend as little time as possible changing it.
I'd say use either javascript (included in a javascript file) to generate the HTML or use server-side scripting like ASP or PHP. The latter would be the best method in my opinion, but I don't know whether that's an option for you.<br><br>Personally I do not care for (i)frames much, for all the reasons Avatar God gave.<br>If you want to it properly, you will also have to include some scripting to make sure people cannot navigate to pages without the frameset (change the location of the page when there's no frameset around it). IFrames can be used, but it can be hard to make 'em look consistent for every browser (the right dimensions, no scrollbars or borders etc.).
Quote:
Original post by levjs
Ok, I've got it working. : ) Thanks to all of you. I have one other question, what is the difference between using HTML files versus php or asp files. Are there advatages to using one of the other?
Levi
HTML files (w/o javascript) are static. ASP, PHP, ColdFusion, etc. are server-side scripting lanuages and allow for dynamic content. For instance, if you have a database and want to display a table on a page, you can use any of these languages to do so. Any changes to your data immediately show up on your page.
The differences:
HTML is static. Unchangable (unless you edit it manually).
SSI is like a C preprocessor. It can do a few nice things like incudes, but that's about it.
PHP, ASP and the rest are server side scripting languages. They are full-blown programming languages who's output is a HTML page. That means that you can have (complex) logic inside that changes the HTML that the users see on the fly.
HTML is static. Unchangable (unless you edit it manually).
SSI is like a C preprocessor. It can do a few nice things like incudes, but that's about it.
PHP, ASP and the rest are server side scripting languages. They are full-blown programming languages who's output is a HTML page. That means that you can have (complex) logic inside that changes the HTML that the users see on the fly.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement