[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 12-19-2003, 12:06 PM   · #1
NetButch
NamePros Member
 
NetButch's Avatar
 
Trader Rating: (0)
Join Date: Nov 2003
Posts: 39
NP$: 64.00 (Donate)
NetButch is an unknown quantity at this point
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


Please register or log-in into NamePros to hide ads
__________________
NetButch ... Catch Your Audience!
www.netbutch.com
NetButch is offline   Reply With Quote
Old 12-19-2003, 12:22 PM   · #2
deadserious
Senior Member
 
Trader Rating: (13)
Join Date: Aug 2002
Posts: 1,300
NP$: 2.85 (Donate)
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
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" -->
deadserious is offline   Reply With Quote
Old 12-27-2003, 10:37 PM   · #3
Jeanco
RyanPrice.ca - Developer
 
Name: Ryan Price
Trader Rating: (28)
Join Date: Dec 2003
Posts: 1,331
NP$: 34.00 (Donate)
Jeanco is a jewel in the roughJeanco is a jewel in the roughJeanco is a jewel in the rough
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
__________________
Ryan Price - Webmaster
www.HostDurham.com - For Hosting | www.jeanco.ca - For Webdesign
Jeanco is offline   Reply With Quote
Old 12-28-2003, 11:39 AM   · #4
tres
You are here: X
 
tres's Avatar
 
Location: US
Trader Rating: (22)
Join Date: Oct 2003
Posts: 423
NP$: 59.75 (Donate)
tres is a jewel in the roughtres is a jewel in the roughtres is a jewel in the rough
This is a late reply but for the benefit of others, http://httpd.apache.org/docs/mod/mo...e.html#xbithack

If you run apache, you can mark a file to parsed by the server by making it executable, i.e.. o+x from the command line or use your ftp client.
__________________
tres is offline   Reply With Quote
Old 12-30-2003, 08:57 PM   · #5
Jamie_net
NamePros Member
 
Jamie_net's Avatar
 
Name: Jamie
Location: Usa
Trader Rating: (2)
Join Date: Dec 2003
Posts: 137
NP$: 54.00 (Donate)
Jamie_net is an unknown quantity at this point
This shows how to with SSI at the bottom of the page.

http://www.xentrik.net/scripts/include.php
__________________
eyeonjamie.net
Jamie_net is offline   Reply With Quote
Old 12-31-2003, 10:37 AM   · #6
jj2ii3344
Senior Member
 
Location: Markham, Ontario, Canada
Trader Rating: (28)
Join Date: Jun 2003
Posts: 3,351
NP$: 574.00 (Donate)
jj2ii3344 is a jewel in the roughjj2ii3344 is a jewel in the roughjj2ii3344 is a jewel in the rough
Very nice info guys! Thanks!
__________________
www.knowledgetosuccess.com
DotComBlitz - Expired Domain Name Tools
jj2ii3344 is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Hunting Moon EscrowDNS Proof is in the Parking
Advertise your business at NamePros
All times are GMT -7. The time now is 10:17 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0