来自 Excel 文件的 Jquery AutoSuggestion

发布于 2024-09-18 15:26:57 字数 170 浏览 10 评论 0原文

我只是想知道是否有人知道如何制作其中一个自动建议文本框,以便当您开始输入时,它会根据 Excel 文件进行自动建议?我到处寻找,却一无所获,我不知道从哪里开始。

创建自动建议不是我的问题,它只是从 Excel 文件中获取数据并显示它以建议与他们输入的内容相关的内容。

我将不胜感激任何帮助。谢谢

I was just wondering if anybody knows how to make one of those autosuggestion textboxes so that when you begin typing, it will autosuggest based off of an excel file? I've searched everywhere and couldn't find anything, and I don't know where to begin.

Creating the autosuggestion is not my issue, it's just getting the data from the excel file and displaying it to suggest something relevant to what they're typing.

I'd appreciate any help at all. Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

深巷少女 2024-09-25 15:26:57

从高层次的角度来看,您需要使用 ajax 来获取文件并解析其内容。完成此操作后,您可以开始检查用户输入是否与解析的内容匹配。

From a high level perspective, you'll need to use ajax to grab a file and parse its contents. Once you've done that, you can begin checking the user input for matches to the parsed content.

如梦 2024-09-25 15:26:57

您希望它保留 Excel 形式吗?

如果您愿意,您可以将其导出为 xml...这会让事情变得容易得多。
如果您一心想使用一些表格格式的数据,我可以建议 mysql 甚至 sqlite 吗?

PS:粗略的谷歌搜索显示:
1. http://amiworks.co.in/talk/readingparsing -excel-spreadsheet-using-php/
2. http://www.ibm.com/developerworks/ opensource/library/os-phpexcel/index.html

Do you want it to stay as Excel?

You could export it to xml if you like.. that'd make things a lot easier.
If you're bent on using some tabular formatted data, might I suggest mysql, or even sqlite?

PS: A cursory google search reveals:
1. http://amiworks.co.in/talk/readingparsing-excel-spreadsheet-using-php/
2. http://www.ibm.com/developerworks/opensource/library/os-phpexcel/index.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文