FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Javascript news feed?

 


Handyman
Is there any one using java script news feeds on there website? I am looking for a free real estate news feed. Do I have any other options besides Javascript? What do you use? I need something that loads fast with reliable information. I would like to put it in a side bar on my website. Is there a way to change the look of a news feed? I know I have a lot of questions but could some one help me out? Shocked
kevinalle
The solution is PHP (or perl).
Feeds are XML files that say a bit of content and are available to the whole net and usualy have a link to the whole information.
An XML file has the form of:
Code:
<?xml version="1.0"?>
<channel>
  <title>TITLE</title>
  <url>URL</url>
  <description>Site Description</description>
</channel>


What you need to do is (after finding this XML), parse it whith PHP and extract the data you need. After you can make with that data what you like. You can display it in HTML, make a javascript to scroll it or eaven send it by mail!
htmlrules
you can also combine PHP with javascript do make some really exciting looking news feeds that can do anything and be displayed anyway you like send a reply and ill show the script required to do so

P.S you will need XML as well
kevinalle
yes, you are right.
JavaScript executes on the client. You can get cool effects and make your page dynamic, but you can never interact with the server.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.