LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2006, 09:39 PM   #1
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 287

Rep: Reputation: 30
Question Dynamically generate a webage and update it automatically using RSS


I want to use pages written in RSS format in order to dynamically update a webpage.
The idea will be to write a program (java, javascript, php... still to decide) that will allow my users to sit and relax while they see a webpage (applet, jsp, javascript, php...) that automatically updates itself with the latest happenings of a soccer match.

What I want to do is the program to gather headlines from RSS pages (let's say check every minute to see if they have updates) and display them automatically. I also want the program to connect to a MySQL database in order to allow my users to read the happenings of the match after the match is over.

I'll appreciate any ideas as I don't really know what will be the best option

One option is PHP+MySQL, but from what I know PHP compiles and then outputs a static HTML.
Another option will be JavaScript
and another option will be a Java Applet.

I've been reading about Jakarta and JSP pages, I've never tried those ones.


I will definitively like to use Java for this project as I could place the banners of my site inside the applets.
 
Old 01-29-2006, 11:48 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
if you were to use only php you could set it to update, but it would have to update the entire page, and you would not really be able to only refresh when there is an update.. you would just have to set refresh meta tag on the clent side..

an applet would probably give you the most possibilities for what you described.. espn.com has somthing like this to follow games on.. i cant remember what they used though.. i havent looked at it for a few years.. maybe if you check it out you may get an idea or two..
 
Old 01-29-2006, 08:19 PM   #3
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 287

Original Poster
Rep: Reputation: 30
Ok I see that they use RSS too:
http://soccernet.espn.go.com/rss/news

What I want to do is a java applet that checks RSS every minute or so and display any new contents in the applet, so they user won't have to refresh the web page
 
Old 01-29-2006, 08:21 PM   #4
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
yeh that shouldnt be too hard to find some info on RSS readers.. there are a ton of options available.. and the format is simple if you write your own..
 
Old 01-29-2006, 08:35 PM   #5
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Check out ajax, a technique suited to your specific requirements.
 
Old 01-30-2006, 01:30 PM   #6
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 287

Original Poster
Rep: Reputation: 30
www.ajaxx.com?
I'm gonna search for it now
 
Old 01-30-2006, 02:14 PM   #7
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Start looking at Ajaxian

graeme
 
Old 01-31-2006, 10:47 PM   #8
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 287

Original Poster
Rep: Reputation: 30
ok do you know where can I see examples of pages like this?
I want to create a soccer news RSS reader
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in update The DNS Server Record Dynamically javabb Linux - Newbie 1 01-05-2005 02:58 PM
"How to Generate PHP files Dynamically" manikantha Programming 5 09-26-2004 12:00 PM
How to update Solaris automatically ? juanb Solaris / OpenSolaris 1 08-21-2004 12:44 PM
How DNS can be configured , to update records dynamically; when using DHCPd?????????? mwj Linux - Software 3 03-20-2004 11:01 AM
getting bind to update dynamically acid_kewpie Linux - Networking 1 11-23-2002 05:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration