GFSlideshow only loads some feeds, not others.

32 views
Skip to first unread message

turbo durso

unread,
Jul 4, 2013, 11:25:41 PM7/4/13
to google-ajax...@googlegroups.com
Hello !

I've just started playing around with the slideshow api. I've set it up following the instructions and it works great with the feed provided, as well as with any other feed from picasa or photobucket.

But when i try it with, for example, the following two feeds :


Nothing comes up. Neither with others, from various sources.

Does the api only support certain types of feeds ?
I understand they are 'media feeds', does that make them different from others ?

I have checked with firebug and no error comes up. Everything seems to work smoothly minus the images not loading !

I'm missing something obviously.

Thank you for your help & enlightenment.




Jeremy Geerdes

unread,
Jul 9, 2013, 11:35:40 AM7/9/13
to google-ajax...@googlegroups.com
There are a number of reasons this could be happening.Check the network pane in Firebug or Chrome Dev Tools to see what, if any response, you're actually getting from Google's servers for these feeds. But to be honest, the problem is probably not that you're not getting data back from Google. Because there is no real accepted standard for media feeds such as these, there are any number of custom namespaces and approaches to including imagery in a feed. The SlideShow script allows you to define the tag that it needs to look for to find the image url (e.g., if there is a <link rel="image">IMAGE_URL_HERE</link> element in the feed). Alternatively, the script also accepts a function to parse the image url out of the feed element using DOM methods and/or regular expressions, etc. This is the method you would have to use to get the image URLs from the second feed you linked.

And then there are some feeds which will just be useless for the slideshow. For instance, the first feed you linked, while it points to the NASA photo of the day, it contains only links to the webpages for the various images and not the images themselves. So there's no way you would be able to get the image URL from the feed using a JS-only implementation.

jg




--
--
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...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/a301f45e-9980-4dde-8a1d-2793476c4aea%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-searc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
Reply all
Reply to author
Forward
0 new messages