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 461 | Next

Raymond Yee

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

mashups.getEntryForElement(DOMElement);
var myList = google.mashups.getObjectById('myList');
var savedEntries = google.mashups.getObjectById('savedEntries');
savedEntries.getData().addEntry(entry);
}
CHAPTER 11 ?–  USING TOOLS TO CREATE MASHUPS 300
//]]>


You can run this mashup here:
http://mashup-raymond-yee-tabs0a.googlemashups.com/
Let??™s look at how this code works:
??? Three tags are used to create the two tabs. A tag is used to instantiate a set of
tabs, with a target attribute pointing to a element that in turn holds
a for each tab.4
??? The copy_this() function is invoked when the Copy button corresponding to a thumbnail
is clicked. This function identifies the feed entry matching the selected DOM element
and copies the element to the feed whose ID is savedEntries.
??? The authenticate attribute of the element is set to true, so users must sign in
to a Google account to use the application.
Once a user creates a collection, you can access the resulting feeds. See the instructions here:
http://code.google.com/support/bin/answer.py?answer=76140&topic=11689
The generic URL of a user feed is as follows:
{PUBLISHED_MASHUP_NAME}.googlemashups.com/feeds/public/user/{USER_EMAIL}/???

STRIPE_NAME is essentially an identifier for a feed. In the case of our mashup, the feed of
my saved entries is available here:
http://mashup-raymond-yee-tabs0a.


Pages:
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473