Tag Archives: jquery

Dead simple jQuery pagination plugin [UPDATED]

This is an extremely simple jQuery plugin for paginating over lists of items. It uses the jQuery.slice() function to reveal the appropriate section of the list, which means it should work fine with dynamic or sortable lists. /** * jQuery … Continue reading

Posted in Uncategorized | Tagged | 3 Comments

jQuery, OpenSearch and Autocomplete

Here’s a quick code snippet for making JQuery’s autocomplete ui element consume an OpenSearch resource: jQuery(‘#term’).autocomplete(‘/proxy/opensearch’, {parse: opensearch}); function opensearch(data) { data = eval(data); var parsed = []; for (var i=0; i < data[1].length; i++) { var row = jQuery.trim(data[1][i]); … Continue reading

Posted in Uncategorized | Tagged | Leave a comment