Help - Search - Members - Calendar
Full Version: Parsing RSS with Javascript
Movable Type Community Forum > Additional Resources > Tips and Tricks
Carl Conrad
Here's my situation. I'm working on a site in which all of the pages except for the blog are contained on server 1. Server 1 is a private server in which the organization I work for pays a monthly fee to have their site on. Server 2 is the MT server. I have access to the RSS feeds and can create whatever type of page I may need to create.

The question: I ONLY have Javascript access on server 1, but want to put the last 5 blog post titles on the homepage (no PHP, ASP, ect...). Is it possible to parse the RSS MT outputs with Javascript? If so, how? I haven't been able to find much online...

Alternatively, I can create some type of index page that rebuilds with MT everytime someone posts. I use this on my own site for syndicating the most current thumbnail from my photoblog, but I use PHP to do it and it's all on the same server. Is there a way to create a page with the proper information on server 2 that javascript in server 1 could read and display?
Carl Conrad
Possible solution for those searching and finding this...

I used an inline frame in the homepage that called an index page that rebuilds after every post. It's not ideal and not really what I wanted (I'd much rather use good syndication technology than some backward way of doing it...), but it works well enough...as long as your browser supports inline frames.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.