![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 2
Rep Power: 0
![]() |
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. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|