Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 27th, 2005, 7:27 AM   #1
Joe Blow
Newbie
 
Join Date: Jun 2005
Posts: 2
Rep Power: 0 Joe Blow is on a distinguished road
Angry Help with drop down box

Okay, I'm not much of a programmer. Actually, I suck at it but I have a problem and I hope you guys can help me out!

I want a drop down box that selects a News Feed, which then goes on to display the selected feed on tha page but I can't seem to work it out.

This was my first attempt at the code (don't laugh!):

  <form name="form1">
           <p>
            <select name="select" onChange="MM_jumpMenu('parent',this,0)">
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/financenews.xml", false, 'news', 'news', 15);?>" selected>Top 
              Stories</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/reutersfinance.xml", false, 'news', 'news', 15);?>" selected>Reuters 
              Australian Business News</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/finance_aap.xml", false, 'news', 'news', 15);?>" selected>AAP 
              Business News</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/finance_abc.xml", false, 'news', 'news', 15);?>" selected>ABC 
              Business News</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/finance_afp.xml", false, 'news', 'news', 15);?>" selected>AFP 
              Business News</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/air.xml", false, 'news', 'news', 15);?>" selected>Australasian 
              Investment Review</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/reutersfinancenz.xml", false, 'news', 'news', 15);?>" selected>Reuters 
              New Zealand</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/asiapulse.xml", false, 'news', 'news', 15);?>" selected>Asia 
              Pulse</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/dowjones.xml", false, 'news', 'news', 15);?>" selected>Dow 
              Jones</option>
              <option value="<?render_news("http://au.biz.yahoo.com/financenews/htt/prime_zone.xml", false, 'news', 'news', 15);?>" selected>PrimeZone</option>
            </select>
          </p>
        </form>

Of course, nothing worked. I kind of figured out that each option value should just be the RSS feed url (i.e. http://au.biz.yahoo.com/financenews/htt/prime_zone.xml) and that the render_news php bit had be in the 'onchange' section near the top, where is what happens when a selection is made... only I can't figure out what the correct syntax is so that I can get the RSS feed to display.

If you understood that garbled mess, perhaps you have an idea of what I need to do to get this damn thing working.

Any help would be greatly appreciated.
Joe Blow is offline   Reply With Quote
Old Jun 27th, 2005, 8:29 AM   #2
foxcity911
Programmer
 
Join Date: Jun 2005
Location: Queensland
Posts: 37
Rep Power: 0 foxcity911 is on a distinguished road
are you trying to make the objects in the drop menu links?
foxcity911 is offline   Reply With Quote
Old Jun 27th, 2005, 9:31 AM   #3
Joe Blow
Newbie
 
Join Date: Jun 2005
Posts: 2
Rep Power: 0 Joe Blow is on a distinguished road
Quote:
Originally Posted by foxcity911
are you trying to make the objects in the drop menu links?
Yes, but they are RSS feeds and need to be displayed in a particular way, hence the ?render_news...
Joe Blow is offline   Reply With Quote
Old Jun 27th, 2005, 11:19 AM   #4
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Well we need to see the MM_jumpMenu function, as without that we have no idea what's happening when you select things.
As for it "not working", you might want to be a bit more verbose. Tell us what is not working.
Cerulean is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC