Changes

Jump to: navigation, search

Labs/Ubiquity/Locked-Down Feed Tutorial

1,055 bytes added, 18:07, 17 March 2009
added where to go from here section
The downside, of course, is that this safety comes at the cost of flexibility: put simply, you can't do nearly as much with LD Feeds as you can with regular feeds, but it can still be used to make a variety of useful commands.
 
Note that Locked-Down Feeds are just one example of a feed type—they're not replacing regular feeds, but instead coexist alongside them. They're part of the Ubiquity team's explorations into different kinds of security models; for more information, check out [http://www.toolness.com/wp/?p=426 Atul's blog post].
 
The rest of this tutorial assumes that you've at least skimmed through the [[Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial|Ubiquity Author Tutorial]].
== A Lot Like Regular Feeds ==
LD Feeds are best thought of as a strict subset of regular feeds. For instance, commands are created using <code>CmdUtils.CreateCommand()</code> and <code>displayMessage()</code> works too, so the code for our "Hello World" example is exactly the same as in our [[Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial#Using_CreateCommand|Author Tutorialexactly the same]] as it is for regular feeds:
<pre>
* It's not possible for commands to [[Labs/Ubiquity/Ubiquity_Source_Tip_Author_Tutorial#Running_on_page_load_and_startup|run on page load or startup]].
== External Resources Where To Go From Here ==
For more information on what's available in LD Feeds, check out the [httphttps://wwwubiquity.toolnessmozilla.com/wphg/ubiquity-firefox/raw-file/tip/ubiquity/index.html#modules/?p=426 Atul's locked_down_feed_plugin.js Locked-Down Feed Plugins postReference Documentation]. In particular, you'll want to scroll down to the section entitled "Global Functions for LDFP Feeds".
Sharing your LD Feeds is encouraged, especially since they're so safe. Clicking the "share" button in the command editor when editing a LD Feed automatically pastes your feed to the [httpshttp://ubiquity.mozilla.com/hg/ubiquitylocked-firefox/rawdown-filefeeds/tipLD Feed Playground], where it's automatically given the proper <code>&lt;link rel&gt;</ubiquitycode> tag, so feel free to use that to publish your commands and link to them from the [[Labs/index.html#modulesUbiquity/locked_down_feed_pluginCommands_In_The_Wild|Commands In The Wild]] page.js LDFP Reference Documentation]
874
edits

Navigation menu