Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 04-17-2005, 00:00   #1 (permalink)
Ian
Civilians

 
Default Re: displaying html using javascript?

> Client script is no better than [i]frame technology.
>
> If you can't use server side scripting then you are pretty much limited to
> Server-Side includes or a local pre-processor to build your pages.


I can use server side scripting, I just don't really know how. I didn't know
if this could be done with PHP and if it could, how to prepare the files (or
call the file). I can't seem to find any tutorials dealing with this,
pprobably because I don't really know much about it or what it's called to
search properly.

If anyone could point me to a tutorial or even clue me in as to what I'm
searching for, I'd be most appreciative.


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 04-18-2005, 04:00   #2 (permalink)
Ian
Civilians

 
Default Re: displaying html using javascript?

> search: 'include one file in another'

That helps - I found exactly what I was looking for. SSI looks like the
easiest way to do this, but I run into a problem - renaming all HTML files
taht would use this to shtml from html. That would be a nightmare not only
to rename the files, but worrying about search engines re-indexing my pages.
Is there a way to do this without having to rename my html files to shtml?
Can something be put in htaccess?


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-18-2005, 04:00   #3 (permalink)
Toby Inkster
Civilians

 
Default Re: displaying html using javascript?

Ian wrote:

> Is there a way to do this without having to rename my html files to shtml?


Yes.

> Can something be put in htaccess?


Yes.

http://www.google.com/search?q=xbithack

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-19-2005, 08:00   #4 (permalink)
Toby Inkster
Civilians

 
Default Re: displaying html using javascript?

Ian wrote:

> If I did it that way I wouldn't have any html files on the site; they'd all
> become shtml files. Not sure if that would make a difference in what I put
> in htaccess.


Better still, for forwards compatibility, redirect all files to URLs
without any extension. Extensions are a bane on URLs.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-20-2005, 04:00   #5 (permalink)
Ian
Civilians

 
Default Re: displaying html using javascript?

> Better still, for forwards compatibility, redirect all files to URLs
> without any extension. Extensions are a bane on URLs.


I'm not sure what you mean - could you explain?


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-21-2005, 00:00   #6 (permalink)
Ian
Civilians

 
Default Re: displaying html using javascript?

> Redirect "http://example.org/foo.html" to "http://example.org/foo".
> Redirect "http://example.org/foo.shtml" to "http://example.org/foo".
> Put your page at "http://example.org/foo".
>
> Now in the future you can make the resource at "foo" into an HTML file, or
> a SHTML file, or a PHP file or even a PDF file or an MP3 file and you
> won't need to ask people to update their links.


My site has 300+ HTML files. With this method it looks like I'd have to put
300 lines worth of redirects in htaccess, correct?


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-21-2005, 04:00   #7 (permalink)
Ken
Civilians

 
Default Re: displaying html using javascript?

Hi Ian -

On Wed, 20 Apr 2005 2150 -0400, "Ian" <nospam@nospam.com> wrote:

>My site has 300+ HTML files. With this method it looks like I'd have to put
>300 lines worth of redirects in htaccess, correct?


Nope. RedirectMatch supports regular expressions. To redirect
everything ending in .html to .shtml with a status code to indicate
that it is a permanent change (301):

RedirectMatch permanent (.*)\.html$ http://www.example.com$1.shtml

--
Ken
http://www.ke9nr.net/
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting HTML code in an HTML page Francesky Web Design 4 07-22-2005 04:00
Re: Displaying Microsoft Project Data in .html format Mike Glen Microsoft Applications 1 07-12-2005 16:00
Display html example code within html GitarJake Web Design 1 11-05-2004 16:00
displaying the HTML code in HTML Astra Web Design 3 07-08-2004 07:31
Trying to create an HTML Parser using MS HTML Object Library (reference) AI-Pragma Web Design 0 06-15-2004 18:31


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 12:31.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.46492 seconds with 19 queries