Without being able to see your get_it function, it's tough to advise you with any specifics. However, I would recommend a couple of ideas that might help clean up the code.
1. Rather than supplying a string for the callback, supply a function reference. 2. Rather than calling the same function multiple times, rig the function to accept an arbitrary number of arguments so that you can supply more than one feed url To demonstrate these things, I put together a VERY rudimentary example in the API playground, which you can check out at the link below. In all likelihood, you will want to make your final application a little more advanced than this, but it will at least show you what I'm talking about. http://savedbythegoog.appspot.com/?id=fe33e8c15113ae8b83d33149fd63ba58ac4e7587 Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Sep 13, 2010, at 5:09 AM, Sulo wrote: > Hi, > is it possible to request more than 1 Feed at the same time? > > for example > > google.load("feeds", "1",{"callback" : 'get_it(\'http:// > www.fernsehkritik.tv/?feed=podcast\',\'1\'),get_it(\'http://rss.golem.de/rss.php?feed=RSS1.0\',\'99\')'}); > > or ... > > google.load("feeds", "1",{"callback" : 'get_it(\'http:// > www.fernsehkritik.tv/?feed=podcast\',\'99\')'}); > google.load("feeds", "1",{"callback" : 'get_it(\'http://rss.golem.de/ > rss.php?feed=RSS1.0\',\'99\')'}); > > > Both solutions are working but i am not sure, is this the right > (clean) way? > > Thanks in advance! > Sulo > > -- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
