Topic: RSS call (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10983" title="Pages that link to Topic: RSS call (Page 1 of 1)" rel="nofollow" >Topic: RSS call <span class="small">(Page 1 of 1)</span>\

 
Moon Shadow
Paranoid (IV) Inmate

From: Rouen, France
Insane since: Jan 2003

posted posted 06-10-2003 10:24

On my website, I plan to include a call to a RSS file. This file contains daily quotes, and changes everyday.

For XML files, it can be achieved by something like that :

code:
<xml src="[i]url of the xml file[/i]" id="quote" async="false"></xml>
<br />Author:
<span datasrc="#quote" datafld="author"></span>
<br />Content:
<span datasrc="#quote" datafld="content"></span>



(Of the course the XML file has to contain the tags author and content)

Now I want to do that with a RSS file... I've searched many times, many places, (and changing that code) but I haven't found how to call a RSS file. Help ?



[This message has been edited by Moon Shadow (edited 06-10-2003).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-10-2003 14:19

Moon Shadow: You should avoid actually inserting XML into your page as browser support isn't great. Your best bet is to use a server-side script to process the RSS file. Do you have access to something like PHP or ASP?

[edit: And if you have PHP do you have Expat?]

___________________
Emps

FAQs: Emperor

Moon Shadow
Paranoid (IV) Inmate

From: Rouen, France
Insane since: Jan 2003

posted posted 06-10-2003 14:56

Yes I can use PHP.. However I never found the time to learn it. How can I call the file in PHP, and then format it like I want ?

I will search myself, but I'm starting from scratch, a little help would be appreciated.

Edit : I've searched what is Expat... I made an info page about the PHP version used on my server here. Looks like Expat is supported (version 1.95.2), but I still don't know what it does exactly.

[This message has been edited by Moon Shadow (edited 06-10-2003).]

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 06-10-2003 15:23

Moon Shadow: nice setup for a free account (XSLT support too ). I'll drop you a line on ICQ (I see you are around) - I have a RSS parser.

___________________
Emps

FAQs: Emperor

Moon Shadow
Paranoid (IV) Inmate

From: Rouen, France
Insane since: Jan 2003

posted posted 06-10-2003 21:36

Thanks to the RSS parser Emperor sent me, I was able to do what I wanted. I had to play with the PHP code for a few tricks (removing image, formatting the text with my css, selecting only four quotes out of twelve), it wasn't easy, hopefully I knew some basic of Javascript that helped

The result is here. Each day, the four quotations will change and I haven't a single thing to do...

Very, very powerful trick



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu