Click to See Complete Forum and Search --> : something of a global variable?


bj_guitarist
06-14-2007, 10:25 AM
hi

im a novice so forgive me.

i have a website that contains about 20 pages. on each page is the same table which contains 3 rows. 2 rows of text and one picture. i want to be able to change this picture each week but dont want to have to update much on each page. is there a way to do this simply? like maybe call to a separate file?

my friend told me this is easy but he is not available to talk to me more about it.

help please.

tracknut
06-14-2007, 10:40 AM
You want to do this with server side includes. Keep that table in a separate file, and 'include' it in each of your 20 pages, just as you're thinking. The exact implementation will depend on what web server you're running. Do a search on server side includes, you'll find all the info.

Dave

bj_guitarist
06-14-2007, 10:47 AM
thanks. now we are getting into something else besides the page. server stuff.
i dont know how to do that. i read about it just know. seems bit complex.

is there any other way?

tracknut
06-14-2007, 10:55 AM
The only other way I'm familiar with was on Front Page, it allowed an include to be done, and would manage actually incorporating the included file for you as it pushed the files to the server. This function appears to have been deleted with Expressions Web, and is probably on the "EOL" list. I wouldn't use it.

Server includes are very simple... just give it a shot. Do you know what type of server your site is on?

Dave

bj_guitarist
06-14-2007, 10:58 AM
no idea. i just emailed my friend. its his server and will get that necessary information.

ssi doesnt seem too hard. i think i can manage it if all the necessary information is setup right.

thanks. ill keep you posted.

i hate the idea of manually changing 20 pages each week for a picture and some text.

what about CSS?

Fang
06-14-2007, 10:59 AM
Server-side is simpler than JavaScript as with JavaScript you have to calculate the week number (http://www.irt.org/script/914.htm). Also a JavaScript solution would display a default image first, then the new week image.

bj_guitarist
06-14-2007, 11:05 AM
i like to think of myself as a gorilla personally :P

bj_guitarist
06-14-2007, 11:18 AM
seems to be useful and not too hard. i have to wait to see about server info. and then check into the basics of SSI more.

thanks guys.

im in china by the way. its 1215 am. going to bed.

thanks