Click to See Complete Forum and Search --> : Something that I want to know how to do, if it exists.


st40611
11-11-2006, 05:44 PM
First of all, I don't know does this really consist of HTML or CSS, or anything, and so if this isn't the place to be posted, I am sorry.

Anyway, I currently have a website - while the center is body (for updates and the contents), I have two menus on the left and right side for browsing through the site. What I want to know is there someway to save these menus' codings, upload them into some sort of format, and then just do a <script src="URL"> or sort of linking to that coding's file for every single page of mine, and so whenever I need to update the left/right menus, I can just simply update the coding file, instead of going through all the pages and change all of it everytime I need to change something.

Also, my site hoster doesn't allow PHP.

Sorry if I can't word it really well, but for those who understand me, please help?

Charles
11-11-2006, 06:16 PM
It's called a "server side include" though there is one obscure way to do it client side. And no web master would remain sane without it. What sort of server side scripting do you have available? SSI? PHP? If you don't know we can sometimes tell from your URL, so do post it.

st40611
11-11-2006, 06:22 PM
My site is hosted on sitesled, and they don't support CGI, PHP, or MySQL.

Not sure about SSI, although it wasn't mentioned in the "non-supported" question.

yitzle
11-12-2006, 12:30 AM
Use frames?
To test SSI:
In the body, add <!--#echo var="DATE_LOCAL" --> and see if it generates a date.
Take a look at http://httpd.apache.org/docs/1.3/howto/ssi.html#configuringyourservertopermitssi
You may need to tweak the .htaccess

Nedals
11-12-2006, 01:32 AM
.... though there is one obscure way to do it client side. And no web master would remain sane without it.OK. You've peaked my interest. Would you elaborate?

_Aerospace_Eng_
11-12-2006, 02:57 AM
OK. You've peaked my interest. Would you elaborate?
Pretty sure the obscure way was to use frames.

Charles
11-12-2006, 05:02 AM
Pretty sure the obscure way was to use frames.Nope, it's using XHTML and external entities. Don't use frames, they're yucky. Use SSI.

Try this. Put <!--#echo var="DATE_LOCAL" --> in some file with a ".shtml" name extension and see if it gives you the current date.

WebJoel
11-12-2006, 08:52 AM
My site is hosted on sitesled, and they don't support CGI, PHP, or MySQL.

Not sure about SSI, although it wasn't mentioned in the "non-supported" question.

I have a site on sitesled.com too. They are nice. But they do not support *php on the 'free' hosting.
Go to:

awardspace.com

and set up your FREE, & AD-free hosting there. 200-MB for the FREE account, no ads, lots of other benefits, and they support *php and MySQL for the FREE hosting! ;-)

Enjoy!

st40611
11-12-2006, 02:56 PM
I put it up, and it just turned blank.

Is there really no such code existing for linking HTML?

Charles
11-12-2006, 03:05 PM
Is there really no such code existing for linking HTML?There is, buried deep in the HTML specifications but browsers never got around to supporting it. XHTML rules are clear, browsers must support all of it or none. MSIE does but, alas, FF does not.

Mr J
11-12-2006, 04:40 PM
st40611

If you have exhausted all options I ask if you use Javascript on your site because although frowned on by many, this may be your only choice left.

Charles
11-12-2006, 04:42 PM
Long before you use JavaScript, use the XHTML method!

st40611
11-12-2006, 05:57 PM
I use Javascript on my site and they support it.

Charles
11-12-2006, 06:21 PM
I use Javascript on my site and they support it.But huge numbers of users do not. In some applications what you are contemplating is so bad it's illegal. Even if your site is of so little consequence that accessibility laws don't apply, there is something to be said for following the rules just as a life's principle.

yitzle
11-12-2006, 07:05 PM
Take me for example ;)
I run FireFox with the NoScript extension thing which means I usually have JS disabled.

st40611
11-12-2006, 09:47 PM
Ah, what the heck, I'll just post the URL to the site.

http://www.sitesled.com/members/golden-gash/

I am trying to make it so I don't have to update the left/right menus everytime I change something.

And it seems that it's Javascript that enables the left menu to have pop-up menus.

yitzle
11-12-2006, 10:38 PM
iframes...
Your menu items are not clickable (or link to a 404)
See http://www.engineering.utoronto.ca/ for what I think was a well designed menu system.
If you don't have JS you can navigate fine by clicking the menu items.

st40611
11-13-2006, 06:26 PM
Some of the pages aren't done yet, so .. yeah.

And another is that anybody knows how to do it then?

Stephen Philbin
11-14-2006, 09:13 AM
Yup. Same here. I use noscript too. Wouldn't be without it. Automatically cuts out a good 70% of the web's crap.