Hey Matt,
My advice and best for gadgets (type=url also!!) would be to avoid the
gadgets functions all together and just dynamically write a scrip tag.
Then add the following params (url encoded, mostly for the feed url is
needed) to the query url for the script src attribute.
?v=1.0 //feed api version
&q=feed_url_encoded
&context=div_results_id
&callback=Callback_function_to_process_json //vj.loadCallback in my
example
Then my callback looks something like this (no eval needed as it is
JSONP this way)
// id is your &context param
vj.loadCallback=function(id,json,status){
blah blah...
var el=document.getElementById(id);
var feeditems=json.feed.entries;
var html='';
for(var i=0;i<feeditems.length;i++){
var entry=feeditems[i];
var title=entry.title;
html+=title;
etc...
}
el.innerHTML=html;
};
Or something to that effect, if you need a working sample let me know,
but its pretty easy to work with. :)
Cheers!
Vision Jinx
On Apr 29, 6:06 pm, Matt Kruse <[email protected]> wrote:
> On Apr 29, 6:48 pm, "Vision Jinx (Guru)" <[email protected]> wrote:
>
> > I would maybe suggest trying the AJAX Feed API over the gadgets one.
>
> Ah, I didn't know this existed. Thanks for the tip.
>
> > But, you can check out this link below to see the author data in JSON
> > format (,"author":"Matt (Guru)",)
> >http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http%3A%2F...
>
> So are you using _IG_FetchContent and the service URL and just calling
> it to get the data back? And then eval'ing the JSON to get the data?
> Or are you include a js file and using the classes directly?
>
> Thanks!
>
> Matt Kruse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" 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-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---