Search results for 'RSS'. 1 post(s) found.
- 2009/07/01 Simple RSS Reader based on javascript
Here's the simple AJAX application getting RSS data that does not use any kind of server resource except java script file itself.
I order to make script simply I designed simple javascript class at http://kurapa.com/js/xml.js.
<html>
<script type='text/javascript' src='http://kurapa.com/js/xml.js'></script>
<script language=javascript>
function xml_call_back_sample( content)
{
RSS = new kRSS(content);
// put HTML into content
document.getElementById("content").innerHTML = "<font color=green><strong>" + RSS.get(0, "title") + "</strong></font><br>" + RSS.get(0, "description") + "<br><br>";;
for( i=1; i<RSS.count(); i++)
document.getElementById("content").innerHTML += "<font color=green><strong>" + RSS.get(i, "title") + "</strong></font><br>" + RSS.get(i, "description") + "<br><br>";
}
function getitnow()
{
// get RSS and define call back function which will be called when the RSS data is read completely
kAJAX_run( 'http://RSS.cnn.com/RSS/edition.RSS', xml_call_back_sample);
}
</script>
<input type=button value='--- get 1 ---' onclick='javascript:getitnow()'>
<div id="content">
click above button to get RSS data from CNN
</div>
</html>
Another posts included in "HTML, Javascript"
| Select All, None, Invert checkbox (0) | 2009/08/21 |
| How to know the browser name in Javascript ? (0) | 2009/08/22 |
| How to know browser version in javascript ? (0) | 2009/08/22 |
| How to find the ip address of a client machine from a web application? (0) | 2009/03/21 |
| Clipboard copy function working (0) | 2008/10/17 |
| IFRAME Auto Resize in IE, FireFox by Javascript (13) | 2008/05/03 |
| How to include Javascript from anonther ? (0) | 2008/01/25 |
| Javascript based Browser Sniffing (0) | 2008/01/25 |

Prev

Rss Feed