Topic: SSI & DHTML Pages that link to <a href="https://ozoneasylum.com/backlink?for=30372" title="Pages that link to Topic: SSI &amp;amp; DHTML" rel="nofollow" >Topic: SSI &amp; DHTML\

 
Author Thread
Desert
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jun 2008

IP logged posted posted 06-27-2008 17:20 Edit Quote

Hi

I figure that someone here will have some info on this.

For some time now I've been using dhtml script for a right-click menu. Thing is, when the menu increases then I have to go to every page where the <body> part of the menu - which is in html - is located.

I have read here and there about SSI and when I contacted my hosting service they said I could simply make an .htaccess file with the following:

AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .html
Options Indexes FollowSymLinks Includes

So far, so good, looks like I just take the html part of the menu and where it goes I add one of these:

<!--#include file="yourfilename.txt"
-->

Nonetheless, I wanted to get others' opinions on this before proceeding in case I'm missing a fine point somewhere.

Thank You

Desert

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 06-27-2008 17:34 Edit Quote

I guess that would work,

Another idea might be to use either XML or JSON pulled in using a bit of AJAX, but this wouldn't necessarily be easier.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 06-28-2008 07:42 Edit Quote

...or better - though it wouldn't necessarily be a bad progressive enhancement.

Plain Apache SSI is great for this, proceed confidently, Desert.

Desert
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2008

IP logged posted posted 06-28-2008 17:06 Edit Quote

Thanks to the both of you.

One last question on this:

The hosting service told me to put those lines into the .htaccess file on the server, "Public_Html" directory. When I replied to them that there was already a .htaccess file there created by the CPanel for the redirects function they said to just add those lines to that file.

Does this mean that a ,htaccess file cna have multiple uses? In other words, the specific function will just seek out what it needs and disregard the rest, in this case the redirects?

Thanks

Desert

DL-44
Lunatic (VI) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 06-28-2008 19:15 Edit Quote

yes, .htaccess is used for many things.

Just be careful not to alter what is already in the file if you don't know what it's for...

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 06-30-2008 10:15 Edit Quote

Speaking of the dark arts of the .htaccess file, has anyone got a good resource on what it can be used for and how to make use of it?

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 06-30-2008 12:10 Edit Quote

http://httpd.apache.org/docs/2.2/howto/htaccess.html
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 06-30-2008 13:05 Edit Quote

I was hoping for something a little more friendly, but I guess that will do

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

IP logged posted posted 07-01-2008 01:36 Edit Quote

Friendly = diluted.

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 07-01-2008 04:51 Edit Quote

Diluted = sometimes what the people unfamiliar with all the tech involved need.


Justice 4 Pat Richard

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana
Insane since: Aug 2000

IP logged posted posted 07-01-2008 19:24 Edit Quote

Blaise,
If you read through the references given by reisio then come backwith questions (even if you think they're dumb) we will probably be able to help you more.

.



-- not necessarily stoned... just beautiful.

Blaise
Paranoid (IV) Inmate

From: London
Insane since: Jun 2003

IP logged posted posted 07-01-2008 21:12 Edit Quote

It's fine I can work out what the Apache site tells me (God knows I've been through the virtual server documents enough), I was just hoping for something a little more digestible.

I'm happy to have the links though and when I really need to work it out I'll read them then.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu