Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / A question for the web guru's

Author
Message
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 13th Oct 2007 02:14
Hello all,

I am by no means a web designer, yet I have been tasked with developing a website for work since I am the only one that has any experience at all . I am adding dynamic content that is designed to be updated easily since the site has about 40 seperate pages and I went about adding it with .js files

example



and then calling it with this



I do get the desired effect of being able to change the .js file and all the pages are updated, however I was wondering if this is the best method, as I will rarely be the person updating the file I was wondering if there is a simple way to achieve the same effect with a text file so people do not have to worry about screwing up the script.

Thanks in advance for any help
HL

Agent Dink
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location:
Posted: 13th Oct 2007 02:44
I'm in a similar boat with you, Hobgoblin, LOL. I've just been charged with developing a website for somebody. Now I'm trying to learn the necessary PHP and design the whole site in less than a week >_<

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 13th Oct 2007 04:58
Hobgoblin,
You're much better off doing a server-side thing in PHP or (not)ASP, etc.

If your host supports MySQL, and you can get at phpMyAdmin, then setting up a database for the pages is a snap, and really easy to edit.
Once you've got that done, using PHP is just as easy as you've done with the javascript there, but it's server-side so noone knows that you're grabbing it from a database, etc.

Google for php/mysql tutorials, and you'll see how easy it is to grab, then display information from a database.

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Oct 2007 07:33
I too would advise PHP over JS.


Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 13th Oct 2007 11:10
I agree, however though I am developing the website it is part of a games page package the company I work for will be selling. We sell the games only normally but now will be offering bulk lots of games and the site I am developing as a bundle. I need to be able to set it up so the end user can just upload the files and be set to go so I avoided php lest the user need to fiddle with it and have no clue about it. Thanks for the advice any more would be helpful.

Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 13th Oct 2007 14:41
Well, if you want them to be able to just upload a page, then why not use straight HTML? It's much easier to understand than HTML and JS.

Make sure you provide a 'template' page that they should edit, then that way they all stay the same, and they only have to upload the one file as they edit it.

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Hobgoblin Lord
19
Years of Service
User Offline
Joined: 29th Oct 2005
Location: Fall River, MA USA
Posted: 13th Oct 2007 19:04
Thanks Jess, I had thought before about having several images set up like sponsor 1.jpg sponsor 2 etc and have them linked and just need to replace those, there is of cource the dynamic text that goes along with it. I actually thought looking at the small js file and seeing what to replace would be easier for someone then digging through all the code of a page looking for where a change needs to be made. Suggestions appreciated I will see what I can come up with.

Once the first page goes up (should be right around november 1) I will post a link so you guys can check it out

HL

Login to post a reply

Server time is: 2024-11-19 09:45:40
Your offset time is: 2024-11-19 09:45:40