View Full Version : RSS from a local drive.

03-23-2012, 04:29 PM
1) Script Title: :: gAjax RSS Ticker (hosted)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/gajaxrssticker.htm

3) Describe problem: Is there a way to use this script when the xml file is on a local drive. I can get the example to work but when I attempt to direct everything to the file I want to display nothing comes accross.

Below is the code that i would like to scroll. I want the items in the <title> tags to be displayed.

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<title>General Information</title>
<lastBuildDate>Fri, 23 Mar 2012 18:45:04 GMT</lastBuildDate>
<generator>ListGarden Program 1.3.1</generator>
<title>Item 2</title>
<pubDate>Wed, 21 Mar 2012 12:33:26 GMT</pubDate>
<title>RSS Test of General Info.</title>
<pubDate>Wed, 21 Mar 2012 12:13:47 GMT</pubDate>

03-24-2012, 01:07 AM
The meaning of 'hosted' in gAjax RSS Ticker (hosted) is that the RSS interpreter is hosted on a remote server or servers, in this case on Google's servers. Those servers need to be able to access the xml file. The only way they can do so is over the internet.

If that file isn't on the internet, they (Google's servers) can't find it.

They can't reach into your local hard drive to read a file there.

If you upload the file to your (or any) server and give gAjax RSS Ticker the address to it on that server, it should work, assuming the xml file is valid xml and in the expected format of an RSS feed.

As a side note, even with another sort of RSS feed interpreter the feed xml file must be live. You can run simulations on a localhost server like WAMP or XAMP, but if you do, it will only be available on that localhost server.

If your goal is simply to experiment locally with xml feed files, you might be able to point your browser's native RSS reader at a local file. But it will only be accessible from your computer. And I say 'might be able to' because even the browser's native RSS reader may require a live feed, something with an address beginning with 'http'.

Or if you just want to see your xml file on the web, a different sort of script could be used. But even in that case the xml file and the script must be on the web, otherwise it would only be viewable on your computer.