Re: Automatically Including Outside Web Content from Another Site
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Automatically Including Outside Web Content from Another Site

From: David Dorward <dorward@yahoo.com>
Date: Thu Jun 16 2005 - 22:13:33 CEST

casualpipesmoker@hotmail.com wrote:

> I'd like to know how you would include updated blog posts in html?
> I assume it uses an RSS feed of some sort... but what kind of code is
> needed to automatically retrieve the updates from other sites and
> include them on one single web page?

I use rawdog but Planet is also popular.
http://offog.org/code/rawdog.html
http://www.planetplanet.org/

You can also do things in most server side programming languages.
http://search.cpan.org/~tima/XML-RAI-1.2/lib/XML/RAI.pm
http://magpierss.sourceforge.net/
http://java.sun.com/developer/technicalArticles/javaserverpages/rss_utilities/

> (For instance, I want to "include" someone else's web content on my
> page as "here's the latest from so and so:" and then you could read
> whatever is retrieved from that URL.)

You can't do this with JavaScript in the typical browser environment (unless
the JavaScript itself is provided by the third party), since cross-domain
scripting is a no-no.

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                     Home is where the ~/.bashrc is
Received on Mon Oct 24 02:12:52 2005