Simple RSS Reader based on javascript

CK CK 3788 
Created at  
502 0 0

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>



 

Tags Exit Code ExitCode HTML Javascript exit() Facebook X
Comments 0
Similar posts
  1. How to return exit code such as exit() function in C/C++ ?
    661
  2. Select All, None, Invert checkbox
    504
  3. How to know the browser name in Javascript ?
    639
  4. How to know browser version in javascript ?
    439
  5. Javascript Prompts
    448
  6. Javascript Confirmation
    589
  7. Photo thumbnail viewer implemented in javascript
    482
  8. To get web browser capability
    522
  9. Javascript based query parser for AJAX application
    564
  10. Displays the html tags without rendering on a webpage
    350
  11. To hide/show area of web page without re-loading a page
    1,019
  12. To compare two HTML tables on web page in real time
    514
  13. Photoshop script programming in Javascript
    531
  14. How to find the ip address of a client machine from a web application?
    518
  15. Clipboard copy function working
    3,353
  16. IFRAME Auto Resize in IE, FireFox by Javascript
    454
  17. How to include Javascript from anonther ?
    409
  18. Javascript based Browser Sniffing
    430
  19. Javascript based Regular Expression Tester
    372
  20. Two useful string functions - substr & substring
    404
  21. Is there URLEncode function in Javascript ?
    390
  22. Move window
    545
  23. How to calculate page loading time ?
    358
  24. Number Of Vists
    507
  25. Add Message On Mouse Traling
    2,545
  26. Tooltip
    407
  27. Document Fader
    346
  28. Book Mark This Site
    403
  29. Icon Coupled Url
    425
  30. Button That Will Close The Browser Window
    349
  1. Copy text to clipboard in Javascript
    1,714
  2. To block copy & paste on your blog content
    899
  3. Shake your browser window by Javascript
    933
  4. Photoshop script programming in Javascript
    531
  5. To compare two HTML tables on web page in real time
    514
  6. To hide/show area of web page without re-loading a page
    1,019
  7. Displays the html tags without rendering on a webpage
    350
  8. Javascript based query parser for AJAX application
    564
  9. To get web browser capability
    522
  10. Photo thumbnail viewer implemented in javascript
    482
  11. Javascript Confirmation
    589
  12. Javascript Prompts
    448
  13. How to know browser version in javascript ?
    439
  14. How to know the browser name in Javascript ?
    639
  15. Select All, None, Invert checkbox
    504
  16. How to find the ip address of a client machine from a web application?
    518
  17. Put Date Time on HTML
    550
  18. IFRAME Auto Resize in IE, FireFox by Javascript
    454
  19. How to elimiate the "Restore Previous Session" dialog when FireFox 2.0 starts
    407
  20. How to include Javascript from anonther ?
    409
  21. Javascript based Browser Sniffing
    430
  22. Javascript based Regular Expression Tester
    372
  23. Two useful string functions - substr & substring
    404
  24. How to block a connection from the certain site ?
    350
  25. Is there URLEncode function in Javascript ?
    390
  26. Move window
    545
  27. How to calculate page loading time ?
    358
  28. Number Of Vists
    507
  29. Add Message On Mouse Traling
    2,545
  30. Tooltip
    407
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    27
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    24
  3. How do I create animated background for Google Meet?
    19,715
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    217
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    85
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    153
  7. Array of arguments passed to script in PHP
    85
  8. Invalid Auction Storms in Ad Tech
    93
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    198
  10. The Two Clocks of Ad Server Architecture
    63
  11. Frequency Cap Architecture Overview
    509
  12. Collecting Proof-of-Play from 100,000 Screens
    141
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    280
  14. What is RedisVL?
    105
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    224
  16. TPU & GPU Cluster Management Tools
    232
  17. The Concept of Scaffolding in AI Agents
    221
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    576
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    253
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    328
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    197
  22. Machine Learning: Training vs. Ranking
    213
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    217
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    189
  25. Designing a Data Curation System Around a Vector Database
    215
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    229
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    649
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    185
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    207
  30. Understanding Data Lineage
    252