Labs/Ubiquity/jQuery in Ubiquity: Difference between revisions

Jump to navigation Jump to search
no edit summary
(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);
18

edits

Navigation menu