CDB cat dog-egories:
      

October 14, 2003

Note: CogDogBlog has a new WordPress powered home at http://cogdogblog.com/. All entries from this version have been moved there, so as a guide dog service try finding this article in its new home by title search.

More Fixes for RSS2JS

Wow, once you start tinkering with code, the worm can opens up. I made a few more adjustments to the RSS to JS demo due to the worminess of RSS 2.0 versus 1.0.

After comments in yesterday's announced fix, I became aware that the code would not deal successfully with RSS 2.0 feeds that use <guid> for the item's url and where <pubDate> is used to give the date the item was posted.

A few more logic checks and i think we have these bases covered, noting that the date/time format for <pubDate> (RSS 2.0) is different from <dc:date> (RSS 1.0).

Also I added something that makes inserts a "no title" string if there is no <title> listed for an item (seems like this happens with Radio feeds often??)

Hopefully that will tide this script over for a while...
"The worms crawl in thw worms crawl out, they turn your blood into saurkraut..." (old kids song)

blogged October 14, 2003 04:29 PM :: category [ rss ]
Comments About "More Fixes for RSS2JS"
RSS Feed for comments on this entry
RSS Feed for all CDB comments
 

Thanks for the fix, much appreciated. Glad to see you're still actively workin on this great script. Btw, is there any chance you can release the form you have on your page so that my visitors can easily customise the look of the news?

The "build.php" is not included in the downloaded package. Just wondering cos it makes life easier for both us and the user :)

Keep up the great work!

Commented by: ALIEN on October 17, 2003 02:41 PM

 

Well that was pretty dumb on my part. I just added the build.php script to the .ZIP download (I will email you a copy).

At some point I will break up the long scrolling page to a better organized site for this demo page. It just keeps growing.

Some day.

Commented by: Alan Levine on October 17, 2003 02:54 PM

 

You really ought to name this "RSS-232" :-)

Commented by: Mark Pearson on October 24, 2003 09:07 PM

 

Ok, I am dense and miss the joke. Huh?

Commented by: Alan on October 25, 2003 02:39 AM

Spammers Have Force Our Hands...
spamroach.jpg
Note: Those nasty blog-spamming roaches have forced us to take action to prevent their spread- all entries made to this blog will remain open for comments for 30 days after the original posting date. After that, it is old news anyhow, correct?

If you really need to make contact with the chief dog around here, please submit a request via our feedback center