Labs/Jetpack/JEP/22: Difference between revisions

Jump to navigation Jump to search
Line 102: Line 102:
     }
     }
   }
   }
   // lets alert the user - tell them how many bookmarks we have with 'foo':
   // lets alert the user - tell them how many bookmarks we have with 'foo':
   function callback(results) {
   function callback(results) {
     alert("You have " + results.count + " bookmarks where the title contains 'foo'! Very Nice!");
     alert("You have " + results.count + " bookmarks where the title contains 'foo'! Very Nice!");
   }
   }
   jetpack.places.fetch({where: 'bookmarks', phrase: 'foo', tags: ['foo']}, callback);
   jetpack.places.fetch({where: 'bookmarks', phrase: 'foo', tags: ['foo']}, callback);
}
}


564

edits

Navigation menu