User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 374,019 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,751 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
View Poll Results: WHich script is easier for a intermediate Python coder to learn?
JavaScript 1 100.00%
PHP 0 0%
Voters: 1. You may not vote on this poll

Views: 1254 | Replies: 3
Reply
Join Date: Jul 2005
Location: Suisun CA
Posts: 68
Reputation: danizzil14 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
danizzil14's Avatar
danizzil14 danizzil14 is offline Offline
Junior Poster in Training

Help with a calendar script...

  #1  
Jan 6th, 2007
Ok, here is my dillema, I want to make a rolling event list script, that goes in my web page, that can "read" off of a sepate document or database.... Basically right now, im roughing it with an html table, and every time i want to add an event, I have to make a new row and cell entirely, but I've seen sites where all you have to do is go and input things like: event name, date, time, etc. How would I make a script that can do that? ANd what language should I use? Java Script or PHP? WHich one would be easier for a beginner? Will I need to get a MySQL database, or could I make a text doc on my server? Basically I want a quick and easy(er) way to input events, without needing to write new code every time I do. Can you please help me?
Blender is by far the best free 3D computer Graphics program and it is expandable with python! GoTo www.blender3d.org
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 916
Reputation: MattEvans will become famous soon enough MattEvans will become famous soon enough 
Rep Power: 5
Solved Threads: 46
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Help with a calendar script...

  #2  
Jan 7th, 2007
They'll both be equally easy and difficult to learn. As of PHP 4 (I haven't used 5 yet); you'll find JavaScript is a much better implemented and thus much more intuitive language.

They both do different things though.

For 'live' events on a page (things that change the HTML document without reloading it for example) PHP isn't going to work atall. You'll need to use JavaScript.

If you want to prepare the page on your server before the user gets into it, JavaScript isn't going to work (unless you use ASP, but then you're really using ASP rather than JavaScript). PHP is suitable for this kind of thing.

If you want to do both at the same time, you'll need to use some handy Javascript objects that let you communicate back to your webserver.

Yes, you can use text files to replace databases. PHP is more optimized to work with databases, but you'll find that you can use a variety of methods to store and retrieve data.

You can't store and retrieve data in JS alone, but you can create scripts on the server to do tasks like that, and then call them form JS using those 'handy objects' I mentioned.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Join Date: Jul 2005
Location: Suisun CA
Posts: 68
Reputation: danizzil14 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
danizzil14's Avatar
danizzil14 danizzil14 is offline Offline
Junior Poster in Training

Re: Help with a calendar script...

  #3  
Jan 7th, 2007
ok, basically i want to make a rolling event calendar, without the adding of code every time I want to add an event...
Blender is by far the best free 3D computer Graphics program and it is expandable with python! GoTo www.blender3d.org
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 916
Reputation: MattEvans will become famous soon enough MattEvans will become famous soon enough 
Rep Power: 5
Solved Threads: 46
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Help with a calendar script...

  #4  
Jan 7th, 2007
The basic principle is: pick a suitable server side language, then pick a data strategy/format, then pick a visual template. Then in your chosen language, write code to transform your data into a page based on the visual template. Now you only need to change data files.

Obviously, the difficult part is chosing how to store your data, how to read and process your data (using a database connection or text file parsing), and how to change your data (online modifications [maybe via a webbased 'control panel'] or offline via upload).

It's better to ask more specific questions than very general ones. A project specification/expectation is still something very general.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 11:12 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC