English 中文(简体)
在选定盒子中处理大量数据
原标题:Dealing with huge data in select boxes

然而,我正在使用我的SQL表格之一的j Query和检索“项目”。 我的表格中约有20 000个“项目”,将用我的表格作为搜索参数。 因此,他们基本上可以寻找包含“项目”的“采购”。

现在,我需要他们从下个名单上选择“项目”,但用20 000个“项目”来列出一个下降的名单中,则需要很长的时间。 我很想知道,那里是否有任何支离破碎的花.,支持用汽车 down倒的盒子。

这样,用户就能够开始打打上头几封信的打字,清单被过滤,或者仅仅点击arrow,看看看看可能20件,最后一点是“请点击”。

我愿意接受任何其他建议,即处理大量数据集和带有上述数据集的超文本箱。

该搜索网页上可能有多个选箱,用户可以选择一个“项目”或“客户”或沿这些路线选择的任何东西,然后点击“档案”。

最佳回答
问题回答

I don t think there s a specific plug-in for what you re after but you should be able to write one yourself pretty easily.

基本概念是:

  • Use jQuery $.ajax to retrieve data from your database
  • Pass 2 parameters from jQuery to your database SELECT statement
    • Keyword
    • PageIndex
  • Search for all items starting with the Keyword (autocomplete) but only return a specific number of results (i.e. 20)
  • Once you populate the results in the Drop Down, check that there are indeed more than 20 items and append an extra <option> called Please click for more ...
  • Bind the same $.ajax call to that <option> by checking it s index and using the dropdowns onchange event (it s index will be 20 because it s the 21st item in the list) and increase the pageIndex that you send to the database

如果你需要更多帮助,请在<代码>上打字。 PHP/mySQLeck out this tutorial





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签