Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:06:48+00:00 2026-06-14T22:06:48+00:00

I am making a news app, and I am using a jQuery plugin called

  • 0

I am making a news app, and I am using a jQuery plugin called zRSSFeed. The plugin comes with a feature to change the RSS feed displayed by selecting a news source from a dropdown, which would alter the feed showing in the result Div (see example here).

Source code :

<script src="http://jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="jquery.zrssfeed.min.js" type="text/javascript"></script>
<script type="text/javascript">
  $(document).ready(function() {
    setRSSFeed('#menu');
    $('#menu').change(function() {
      setRSSFeed(this)
    });
    function setRSSFeed(obj) {
      var feedurl = $('option:selected', obj).val();
      if (feedurl) {
        $('#result').rssfeed(feedurl);
      }
    }
  });
</script>
<select id="menu">    
  <optionvalue="http://feeds.reuters.com/reuters/oddlyEnoughNews">News</option>
  <option value="http://feeds.bbc.co.uk/iplayer/highlights/tv/list">BBC </option>
  <option value="http://rss.cnn.com/rss/edition.rss">CNN News</option>
</select>
<div id="result"></div>

My problem is that instead of changing the feed displayed by selecting a newsource from the dropdown, I would love to change them by selecting a link (href) with a specified new source.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:06:48+00:00Added an answer on June 14, 2026 at 10:06 pm

    Instead of using this

    <select id="menu">    
      <optionvalue="http://feeds.reuters.com/reuters/oddlyEnoughNews">News</option>
      <option value="http://feeds.bbc.co.uk/iplayer/highlights/tv/list">BBC </option>
      <option value="http://rss.cnn.com/rss/edition.rss">CNN News</option>
    </select>
    

    Use this

    <script type="text/javascript">
      $(document).ready(function() {
        //setting default feed
        setRSSFeed('http://feeds.reuters.com/reuters/oddlyEnoughNews');
        });
        function setRSSFeed(feedurl) {
           if (feedurl) {
                 $('#result').rssfeed(feedurl);
                     }
                  }
              });
    </script>
    
        <a href="#" onclick="setRSSFeed('http://feeds.reuters.com/reuters/oddlyEnoughNews');">News</a>
        <a href="#" onclick="setRSSFeed('http://feeds.bbc.co.uk/iplayer/highlights/tv/list');">BBC</a>
        <a href="#" onclick="setRSSFeed('http://rss.cnn.com/rss/edition.rss');">CNN News</a>    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading the news.ycombinator RSS feed using python and storing them in a
Ok so I'm making a simple web app using the technologies from the topic,
I am making a news add form using post method. In the second page
Right so I'm making a news system that uses jQuery and AJAX for the
I am making an app which has a section for latest company news. Basically
I'm making a website with Joomla and am using RokSprocket to display some news.
I am making a iphone app for my local school. I have a good
Suppose there are objects making subscriptions to a socket server like so: socket.on('news', obj.socketEvent)
I am making an FQL query using the Facebook PHP API, like so: $stream
So far I've got scrolling list items on click using the code below: $('li#news-back').click(function(){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.