Changes

Jump to: navigation, search

Firefox/Projects/PlacesQueryAPISketches

1,901 bytes added, 02:31, 7 November 2009
no edit summary
return true;
}
 
</pre>
 
== Anatomy of a (bookmark folder) 'Item': ==
 
<pre class="brush:js;">
 
{ title: 'Bills',
url: 'bookmark://Apartment/Bills'
path: 'Bookmarks/Apartment/Bills',
node: 'folder',
id: 34678,
type: 'bookmark',
children: (property), // returns a resultTree or
// Iterator of top-level siblings
silblings: (property), // returns Iterator Obj
siblingCount (property) // returns Number
parent: (property), // returns Item
lastVisit: '2009-11-04 12:00:01',
firstVist: '2009-10-31 15:00:23',
visits: (property), // returns ordered list of visitItems
icon: (property), // returns faviconItem object
}
 
</pre>
 
== Anatomy of a (history) 'Item': ==
 
<pre class="brush:js;">
 
{ title: "Hurricane Bill's winds weaken",
url: 'news.yahoo.com/s/ap/...'
path: 'news.yahoo.com/s/ap/...',
node: 'item',
id: 34678,
type: 'history',
children: null,
silblings: null,
siblingCount: null,
parent: null,
lastVisit: '2009-11-04 12:00:01',
firstVist: '2009-10-31 15:00:23',
visits: (property), // returns ordered list of 'visitItem' objects
icon: (property), // returns icon uri
}
</pre>
  == Faceted Searches Anatomy of a 'bookmark Item': == <pre class="brush:js;">  { title: 'Mozilla.org', url: 'https://www.mozilla.org' path: 'Bookmarks/Software/OpenSource/Mozilla.org', node: 'item', id: 354, type: 'bookmark', children: null, silblings: (property), // returns Iterator Obj siblingCount (property) // returns Number parent: (property), // returns folderItem lastVisit: '2009-11-04 12:00:01', firstVist: '2009-10-31 15:00:23', visits: (property), // returns ordered list of visitItems icon: (property), // returns faviconItem object } </pre>  == Anatomy of a 'bookmark folderItem': == <pre class="brush:js;">  { title: 'Bills', url: 'bookmark://Apartment/Bills' path: 'Bookmarks/Apartment/Bills', node: 'folder', id: 34678, type: 'bookmark', children: (property), // returns a resultTree or // Iterator of top-level siblings silblings: (property), // returns Iterator Obj siblingCount (property) // returns Number parent: (property), // returns Item lastVisit: '2009-11-04 12:00:01', firstVist: '2009-10-31 15:00:23', visits: (property), // returns ordered list of visitItems icon: (property), // returns faviconItem object } </pre> == Anatomy of a 'history Item': == <pre class="brush:js;">  { title: "Hurricane Bill's winds weaken", url: 'news.yahoo.com/s/ap/...' path: 'news.yahoo.com/s/ap/...', node: 'item', id: 34678, type: 'history', children: null, silblings: null, siblingCount: null, parent: null, lastVisit: '2009-11-04 12:00:01', firstVist: '2009-10-31 15:00:23', visits: (property), // returns ordered list of 'visitItem' objects icon: (property), // returns icon uri traversal: (property), // returns a 'traversal' object or iterator } </pre> == Anatomy of a 'traversal' object: == A Traversal is a browsing session that can be reconstructed like a tree: <pre class="brush:js;"> // Work in progress - Perhaps I would like to be able to describe the traversal // path or browsing session as a tree like object that shows what urls // you visit, how you got there, and if and when new tabs or windows were // spawned. Visualizing this effectively would be a very powerful tool in // helping users understand how they get to urls and why. // The questions are "how did I get here" and "where did I go on my way", // "where did I get sidetracked", etc... { // more fleshing out is for needed here. placeIdIndex: [ 345, 567, 987, 234, 992, 534, ], placeIndex: { 345: (property), // returns 'Place'4object 567: (property), ...0 } // start returns a traversalItem start: { url: (property), // returns 'Place' object newTab: true, dateTime: '? 2009-11-05 11:05:06', referrer: null, next: (property), // returns 'history' object } } </pre> == Faceted Searches ==
<pre class="brush:js;">
564
edits

Navigation menu