[#113,docs/tutorials][s]: split tutorials up more.

This commit is contained in:
Rufus Pollock
2012-07-04 14:52:12 +01:00
parent 811604d409
commit 03fe9a5a6a
6 changed files with 156 additions and 56 deletions

View File

@@ -8,6 +8,12 @@ var $el = $('.ex-2');
// (even for the case of in memory data where querying in fact happens synchronously)
// On completion the display function will be called
dataset.query({q: 'UK', size: 2}).done(function() {
display(dataset);
$('.ex-2').append('Total found: ' + dataset.recordCount);
$('.ex-2').append(' Total returned: ' + dataset.currentRecords.length);
$('.ex-2').append(
$('<pre />').html(
JSON.stringify(dataset.currentRecords.toJSON(), null, 2)
)
);
});