•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 423,885 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,212 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1787 | Replies: 1
![]() |
•
•
Join Date: Mar 2006
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I want to put about 7 different RSS news feeds in a page. Rather than make an indivdiual page for each I was hoping to have links at the top that as such: World News, US News, Sports, Etc. Those will act as links so when they click on them that specific news feed will appear below, but the page will not reload. They have to be able to switch between news feeds and load a new one. I'm not even sure what to call this code so its been hard to look. Any suggestions or know of any code for this?
Thanks.
Thanks.
•
•
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation:
Rep Power: 4
Solved Threads: 4
To handle the content switching, I recommend you look into AJAX. This means using the javascript XmlHttpRequest object. There are a few popular AJAX function libraries out there to make it easier. I recommend the excellent one from Yahoo. Check out Yahoo's UI Library.
http://developer.yahoo.com/yui/index.html
Specifically, you want the Connection Manager -- this is Yahoo's AJAX class.
http://developer.yahoo.com/yui/connection/index.html
You'll have to play with the examples a bit to get the hang of it, but it is time spent well.
Before most modern browsers supported AJAX, the popular method was IFRAMES--like you are trying to do. You can make that work. All you need is to have your select list or links of RSS feeds change the 'src' attribute of the iframe. You can do this using getElementById, or simply use the normal window.location = "" method. This is not a complete solution, but enough hopefully for you to dig around for the full solution.
As for consuming RSS feeds, you may find my PHP examples helpful---if you use PHP that is. I have an RSS Consumption Example at http://www.troywolf.com/articles
http://developer.yahoo.com/yui/index.html
Specifically, you want the Connection Manager -- this is Yahoo's AJAX class.
http://developer.yahoo.com/yui/connection/index.html
You'll have to play with the examples a bit to get the hang of it, but it is time spent well.
Before most modern browsers supported AJAX, the popular method was IFRAMES--like you are trying to do. You can make that work. All you need is to have your select list or links of RSS feeds change the 'src' attribute of the iframe. You can do this using getElementById, or simply use the normal window.location = "" method. This is not a complete solution, but enough hopefully for you to dig around for the full solution.
As for consuming RSS feeds, you may find my PHP examples helpful---if you use PHP that is. I have an RSS Consumption Example at http://www.troywolf.com/articles
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Odd Page Cannot Be Displayed Problem (All browsers, not just IE) (Windows NT / 2000 / XP / 2003)
- Email an aspx page (or any webpage you want) (ASP.NET)
- How to get auto calculated expiry date on lost focus event of registration date (ASP.NET)
- while function and "mysql_fetch_assoc() not a valid MySQL result resource" (PHP)
- update the page without changing it? (Site Layout and Usability)
- Home Page not recognized by browser (ASP)
- Explorer Caused An Invalid Page Fault (Windows 9x / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Loading Frame
- Next Thread: javascript radio buttons and insanity


Linear Mode