[worldKit-dev] Using JRSSComm to feed RSS

Mikel Maron mikel_maron at yahoo.com
Thu Feb 22 00:56:14 PST 2007


Hi Shane

The Javascript is executing before worldKit has loaded into the page, so it never receives that JRSSComm. 
The following sends the RSS after clicking a link .. it will work.

<script type='text/javascript'>
function sendrss() {
    document.worldkit.SetVariable
('JRSSComm','<?xml version="1.0"?><rss version="2.0" xmlns:georss="http://www.georss.org/georss"><channel><title>Geo Location</title><item><title>SHARK BAY</title><georss:point>-25.9330005645752 113.541999816895</georss:point></item></channel></rss>');
</script>
<a href="javascript:sendrss();">Send RSS</a>


Also, in your GeoRSS Point, there's a space between "-" and "25.93...", which should be removed.

-Mikel

----- Original Message ----
From: Shane Norman <shane.norman at gmail.com>
To: worldkit-dev at lists.brainoff.com
Sent: Wednesday, February 21, 2007 11:23:25 PM
Subject: [worldKit-dev] Using JRSSComm to feed RSS

Hi Guys

I am trying to feed RSS string into worldkit. So far I am unsuccessfull. Please give me some advice. I only have limited knowledge in Javascript. And I use vb .net. This is my coding.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="800" HEIGHT="400" id="worldkit">

<PARAM NAME=movie VALUE="worldkit.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>

<EMBED src="worldkit.swf" swLiveConnect="true" quality=high bgcolor=#000000 WIDTH="800" HEIGHT="400" NAME="worldkit" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="
http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<script type='text/javascript'>
document.worldkit.SetVariable
('JRSSComm','<?xml version="1.0"?><rss version="2.0" xmlns:georss="http://www.georss.org/georss"><channel><title>Geo Location</title><item><title>SHARK BAY</title><georss:point>-
25.9330005645752 113.541999816895</georss:point></item></channel></rss>');</script>


Thanks in advcance

Cheers
Shane

_______________________________________________
worldkit-dev mailing list
worldkit-dev at lists.brainoff.com
http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.brainoff.com/pipermail/worldkit-dev-brainoff.com/attachments/20070222/aa14d82f/attachment-0005.htm>


More information about the worldkit-dev mailing list