JavaScript goes here.. and i have many sections of div tag.. i want to make this script common for all divs that i am using.. where as only the url's have to change reference with the corresponding div.. plz help..??
<script type="text/javascript"> var feedcontainer1=document.getElementById("feeddiv1") var rssoutput1="<b>TOI</b><br /><ul>" function rssfeedsetup1(){ google.load("feeds", "1") var feedpointer1=new google.feeds.Feed("http://handheld.softpedia.com/ backend-software.xml") //Google Feed API method feedpointer1.setNumEntries(10) //Google Feed API method feedpointer1.load(displayfeed1) //Google Feed API method } function displayfeed1(result){ if (!result.error){ var thefeeds1=result.feed.entries for (var i=0; i<thefeeds1.length; i++) rssoutput1+="<li><a href='" + thefeeds1[i].link + "'>" + thefeeds1[i].title + " ยป" + "</a></li>" rssoutput1+="</ul>" feedcontainer1.innerHTML=rssoutput1 } else alert("Error fetching feeds!") } </script> -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en