User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Mar 2006
Posts: 2
Reputation: kgonsalv is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kgonsalv kgonsalv is offline Offline
Newbie Poster

Calling Different Iframes in Page

  #1  
Mar 24th, 2006
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Solution Re: Calling Different Iframes in Page

  #2  
Mar 24th, 2006
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
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 4:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC