首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > 一个HTML文件包含一个Ajax前端显示/自动完成框。

一个HTML文件包含一个Ajax前端显示/自动完成框。

资 源 简 介

This is an example of how to create an AJAX suggest box front-end without using any javascript libraries. The code was originally written for Spyfu.com and uses the same back-end to serve suggestions as Spyfu does. This back-end uses a C# dictionary to serve quick in-RAM lookups. Features: * Maintains one selected item whether pressing arrow or mousing over. * Hides suggestions when clicking outside box or pressing escape. Areas of potential improvement include: * Better handling of pressing the escape. Currently, this can cause the input box to flash text that was previously typed. * Change the selected item on key down rather than key up. The AJAX request won"t work on key down, but the selection can probably be separated from the request. This will allow holding down the up or down arrow to scroll through suggested items more quickly.

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 开心快活人 20分钟前 成为了本站会员

  • 晋财 1小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

0.187721s