348
edits
(Created page with "What would a "Social API for the Browser" look like? There are many social actions that we perform in the browser, today, using social networking services. We might want to: *...") |
|||
Line 52: | Line 52: | ||
Alternatively (or additionally), the service provider can signal its ability to handle "Share" operations, which require more interaction with the user than a "Recommend". When a "Share" operation is initiated (perhaps by another button, or a click-and-hold on Recommend, a second click following the Recommend, or a context menu action), a small floating panel containing a frame rendering the service provider's "Share" URL is rendered above the current browser window. An event is dispatched to the frame indicating what object the user shared and the frame can update itself dynamically using JavaScript or AJAX techniques if it wishes. When the "Share" frame is done interacting with the user, it calls window.close to indicate that it is done, and the panel is closed by the browser. | Alternatively (or additionally), the service provider can signal its ability to handle "Share" operations, which require more interaction with the user than a "Recommend". When a "Share" operation is initiated (perhaps by another button, or a click-and-hold on Recommend, a second click following the Recommend, or a context menu action), a small floating panel containing a frame rendering the service provider's "Share" URL is rendered above the current browser window. An event is dispatched to the frame indicating what object the user shared and the frame can update itself dynamically using JavaScript or AJAX techniques if it wishes. When the "Share" frame is done interacting with the user, it calls window.close to indicate that it is done, and the panel is closed by the browser. | ||
Previous prototyping work in Mozilla Labs has included [http://f1.mozillamessaging.com/ Mozilla F1], which demonstrated how this function could work. The feature described here is compatible with, and builds on, the [https://addons.mozilla.org/en-US/firefox/addon/firefox-share-alpha/ Firefox Share] work that is ongoing in Firefox. | |||
==== Notifications ==== | ==== Notifications ==== |
edits