 |
Results from the most recent live auction are here.
11 members in the live chat room. Join Chat!
| | System Maintenance: NamePros will be offline for 20 minutes at the top of the hour (4AM EST)
12-19-2003, 12:06 PM
|
· #1 | | NamePros Member | INCLUDES w/o PHP? I am wondering if I can do a similar function to the PHP Include() function by using only HTML/DHTML/XML...
I want to make changing text really easy by using .txt files for the text and formating everything with CSS... the server does not support PHP or ASP and it will not ever.. so I need to find a way to do this without anything except the basic languages.. even JavaScript would be okay..
thanks in adavnce.
Butch
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
|
| |
12-19-2003, 12:22 PM
|
· #2 | | Senior Member Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 ( Donate)
| You can try something like this for use with Internet Explorer:
<object type="text/x-scriptlet" width="100" height="100" data="file.txt"></object>
Or if your server supports Server Side Includes you could do it that way. You can check if it supports SSI by adding something like:
<!--#echo var="DATE_LOCAL" -->
to a .shtml page and see if it displays the time. Then if SSI is enabled you can include files with the include directive:
<!--#include file="file.txt" --> |
| |
12-27-2003, 10:37 PM
|
· #3 | | RyanPrice.ca - Developer Name: Ryan Price Join Date: Dec 2003
Posts: 1,331
NP$: 34.00 ( Donate)
| yup, and can you set your .htaccess file so you don't even need to rename from .HTML - you can set it so that the webserver parses HTML like it would SHTML.
Google is your friend  |
| |
12-28-2003, 11:39 AM
|
· #4 | | You are here: X Location: US Join Date: Oct 2003
Posts: 423
NP$: 59.75 ( Donate)
| |
| |
12-30-2003, 08:57 PM
|
· #5 | | NamePros Member Name: Jamie Location: Usa Join Date: Dec 2003
Posts: 137
NP$: 54.00 ( Donate)
|
__________________
eyeonjamie.net
|
| |
12-31-2003, 10:37 AM
|
· #6 | | Senior Member Location: Markham, Ontario, Canada Join Date: Jun 2003
Posts: 3,351
NP$: 574.00 ( Donate)
| Very nice info guys! Thanks! |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |