Labs/Ubiquity/jQuery in Ubiquity: Difference between revisions
Jump to navigation
Jump to search
(New page: Here's an example of using jQuery in Ubiquity: // get the active document var doc = Application.activeWindow.activeTab.document; // find div.foo in the body of that document jQuery('div....) |
No edit summary |
||
| Line 2: | Line 2: | ||
// get the active document | // get the active document | ||
var doc = Application.activeWindow.activeTab.document; | var doc = Application.activeWindow.activeTab.document; | ||
// find div.foo in the body of that document | // find div.foo in the body of that document | ||
jQuery('div.foo', doc.body); | jQuery('div.foo', doc.body); | ||
Revision as of 00:56, 6 September 2008
Here's an example of using jQuery in Ubiquity:
// get the active document
var doc = Application.activeWindow.activeTab.document;
// find div.foo in the body of that document
jQuery('div.foo', doc.body);