Files
2012-02-21 01:15:00 -05:00

1 line
2.6 KiB
JSON

[{"user_id": 10074, "stars": [], "topic_id": 15767, "date_created": 1301312929.9150569, "message": "Solution (So simple, that I'm sad I couldn't figure it out on my own :P):\nclearTimeout (wait);\nwait = setTimeout(function(){\nsearch($(\"#search_box\").val());\n },700);", "group_id": 428, "id": 457145}, {"user_id": 10074, "stars": [], "topic_id": 15767, "date_created": 1301312387.6242609, "message": "Hey, I want an instant search for a table. I have a Text Input Field and .keyup() works ok. But it's not nice to update on every backspace or even if I type fast and update every letter. Have you ever solved this? Maybe a small timeout, like \"you haven't typed for 0,7sec now I update the table\". Is there a nice solution with jQuery? Or another nice solution?", "group_id": 428, "id": 457084}, {"user_id": 18694, "stars": [], "topic_id": 15767, "date_created": 1301322806.127424, "message": "You can also use Ben Alman's doTimeout plugin, which also has more functionality and it's pretty nice: http://benalman.com/projects/jquery-dotimeout-plugin/", "group_id": 428, "id": 458161}, {"user_id": 15233, "stars": [], "topic_id": 15767, "date_created": 1301406156.540153, "message": "have you tried a plugin, like Datatables? http://www.datatables.net/", "group_id": 428, "id": 469391}, {"user_id": 29659, "stars": [], "topic_id": 15767, "date_created": 1302855540.226476, "message": "Try debouncing it", "group_id": 428, "id": 697849}, {"user_id": 29659, "stars": [], "topic_id": 15767, "date_created": 1302855608.694277, "message": "$('input').keyup(function(){...}.debounce(500));", "group_id": 428, "id": 697857}, {"user_id": 29659, "stars": [], "topic_id": 15767, "date_created": 1302855559.5944741, "message": "https://gist.github.com/raw/661000/c10aa59ddcd5f354a11522251ae75c26f93204d6/debounce-prototype", "group_id": 428, "id": 697852}, {"user_id": 27150, "stars": [], "topic_id": 15767, "date_created": 1303076611.2818291, "message": "why so many solutions that delay the answer when I do have one letter to type? I thought the behavior we all wanted was \"kick off a search (no delay!) as long as there isn't one running, and don't forget to run an extra one at the end so that when I do stop typing, the results get in sync\"", "group_id": 428, "id": 718706}, {"user_id": 27150, "stars": [], "topic_id": 15767, "date_created": 1303076733.731647, "message": "cancelling existing searches is bonus, as is submitting concurrent ones and only using results from the newest one (which is what i'm doing here: https://github.com/drewp/search/blob/master/src/main/webapp/index.html#L208)", "group_id": 428, "id": 718717}]