SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 184 | Next

Raymond Yee

"Pro Web 2.0 Mashups: Remixing Data and Web Services"

http://examples.mashupguide.net/ch04/Flickr.JSON.html
feed_div.innerHTML = feed_html;
}
function load() {
var head_element = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'http://api.flickr.com/services/feeds/photos_public.gne?
tags=tree&format=json';
head_element.appendChild(newScript);
}
//]]>






In Chapter 8, I??™ll return to how to use JSON in mashups.
Other Feed Formats
The other available formats are less commonly used to represent feeds in web sites other than
Flickr but come in handy depending on your specific needs. For example:
??? You can use the php or php_serial format to generate a convenient representation of
the feed for PHP programming. (These formats have roughly the relationship to PHP
that the json format has to JavaScript.)
??? You can use the sql format to quickly generate SQL code to get the Flickr feed into your
SQL database.
??? The csv format comes in handy for importing your feed into a spreadsheet.
??? The rss_200_enc format is used to insert a reference to the original photo in an RSS 2.0
tag.
Feeds from Other Web Sites
Feeds are extremely helpful in creating mashups because feeds are packaged in formats designed
to be accurately and automatically parsed by software.


Pages:
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196