问题标签 [autocompleteextender]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net - AutoCompleteExtender 似乎在失去焦点后停止运行
我喜欢 AutoCompleteExtender 并且之前使用过它并取得了巨大的成功。我的新老板注意到了一些他不喜欢的东西,除非我能弄明白,否则他会让我把它扔到别的东西上——哎呀!场景如下:我单击文本框,输入前 3 个字母——在这个例子中我们会说“pat”——然后出现与前三个首字母匹配的名称列表。到目前为止很棒。
然后,在不选择任何内容或更改框中的文本的情况下,我在框外单击(例如,仅在页面的空白部分)。现在,我在文本框中单击返回,再次输入“pat” - 期望列表会再次出现。但是 - 什么都没有出现。现在,如果我再输入一个字母,例如“patt”,则返回结果。但是使用相同的字符组合,nada。我还注意到,如果我离开页面一段时间,10-15 分钟,然后回来,它也会停止响应。
有没有其他人经历过这种情况,如果有,您是否提出了解决方案?如果是这样,我很想听听。我真的不想强制刷新页面或其他东西,因为我确信我的老板不会喜欢这样。非常感谢任何建议。
哦 - 我尝试添加一点 JavaScript 来强制清除文本框 onlbur - 没有骰子 - 在上述情况下仍然没有显示任何结果。
jquery - Ajax Autocomplet 在第二次访问时取消绑定抛出 jquery simplemodal
我正在使用 jquery simplemodal 打开一个包含 ajax 自动完成输入的弹出表单,第一次访问该自动完成的模式可以正常工作,但是当我关闭它并重新打开模式时,自动完成不再绑定到 ajax 的功能,任何线索?我将关闭设置为默认设置,没有使用 live....
asp.net - 使用 AutoCompleteExtender 时传递参数
使用 AutoCompleteExtender 时如何将参数传递给服务方法?
sharepoint-2010 - AutoCompleteExtender 在 Sharepoint 2010 中不起作用
这几天一直困扰着我。我正在尝试在 Sharepoint 2010 的 Visual Web 部件项目中使用 AutoCompleteExtender,但是当我输入字符时没有任何反应。起初我认为这是一个 Ajax 问题,所以我使用了 TextBoxWatermarkExtender 并且它有效,所以它一定不是 ajax 问题。
我按照这个人的指南逐字:http ://ranaictiu-technicalblog.blogspot.com/2010/08/ajax-control-toolkit-with-sharepoint.html
这是我的 ascx:
这是我的代码隐藏:
任何帮助,将不胜感激。我正在和另一个人一起工作,我们都对为什么它不起作用感到完全困惑。
javascript - 获取 ProductID 的 Javascript 代码?
我有一个获取 ProductName 的网络服务,我需要从 AutoExtender 下拉的产品链接到每个产品的单独页面。现在 URL 填充的是 ProductName,而不是 ID:
需要是
*注意 - 这个网站仅供内部使用,所以我们现在不担心被黑客入侵。我们希望网站能够正常工作。
有人告诉我,asp.net 论坛上的人无法做到我想做的事情,所以我来到这里希望得到一些帮助。我认为是从 web 服务获取 ProductName 的 javascript,我需要它来获取 ProductID。我尝试重写 For Each 循环以包含 ProductID 而不是 ProductName,但是 AutoCompleteExtender 仅在结果中显示 ID 而不是 ProductNames。
Javascript:
这是我的 autoCompleteExtender 和网络服务的代码:
编辑:添加在切换到 AutoCompleteExtender 之前搜索结果的显示方式。我试图将其合并到我现在拥有的东西中,但我无法让任何事情正常工作。请注意,这是旧代码,上面是我现在使用的所有代码。
我试过
但是在列表中使用自动完成扩展程序会阻止显示查询结果。
编辑:工作代码:
c# - 自动完成扩展器未填充
我正在尝试将Ajax Auto Complete Extender与托管在 Web 项目中的 WCF 服务一起使用。服务已到达,我已验证结果是使用提琴手返回的,但是与自动完成扩展器关联的文本框永远不会填充。
服务合同如下:
该实现只是返回一个填充的字符串列表。
aspx如下:
服务的路由在 Global.asax 中配置如下:
如前所述,我可以热服务,当我在提琴手中观看时,我会收到 JSON 格式的响应。以下是原始响应:
可能值得注意的是,如果我从服务合同中省略了 ResponseFormat,结果将以 XML 格式返回,并且文本框会填充一个很长的未定义列表
我错过了一些基本的东西吗?
c# - using autocompleteextender without webservice
Is it possible to use autocomplete extender without using webservice.. and also am working with 3tier architechture..i could retrieve one column but i could not return the string separately..
asp.net - 警告 AjaxControlToolkit.AutoCompleteExtender.CompletionListElementID 已过时:不要传入 CompletionListElementID,而是使用默认值
我真的无法理解这个问题。当我发布我的 asp.net 4.0 网站时,它会显示此错误。
警告“AjaxControlToolkit.AutoCompleteExtender.CompletionListElementID”已过时:“不要传入 CompletionListElementID,而是使用使用 CssClass 属性的默认弹出按钮和样式。”
现在我将提供它显示为警告的元素。
现在 Visual Studio 希望我修复什么以及为什么显示此警告?
有任何想法吗 ?谢谢你。
Visual Studio 2010 , C# 4.0 , Asp.net 4.0 , Asp.net 网站
c# - AjaxControlToolkit AutoCompleteExtender 在 IIS 中不起作用
我正在使用没有 Web 服务(PageMethod)的 AjaxControlToolkit 的 AutoCompleteExtender。它在我的本地机器上运行良好,但 AutoCompleteExtender 无法在 IIS 中运行,尽管 AjaxControlToolkit 可以。
我四处搜索,但没有一个适用于我的问题。
它在 IIS-6 和 Framework 4.0 中运行。
这是我的代码:
ASP
代码背后:C#
请帮忙,谢谢。
更新:
没有错误显示。建议列表不会出现。
javascript - Redisplay results list on AutoCompleteExtender through javascript
I have a working AutoCompleteExtender implementation.
What I want, is that if I have exited the text box, and the list of items have dissappeared, I want to re-display the list from javascript code without having to write something in the text box again (just redisplay list based on current filter value in text box by click on a button or something). I know how to get the AutoCompleteExtender Behaviour object from code, so all I need is to know the javascript API on that object that enables me to redisplay the list.
I have tried this as suggested in the comments on this answer, but not working:
I have also tried this as suggested in this answer, but not working:
EDIT:
After some investigation in the back end code used by the AutoComplete, I think maybe the problem is that once shown, it checks on future calls if the value in the search box has changed since last time, and if not it doesn't show it again. I have not found out how to come around this. I have tried different approaches to reset the value, and then set the value again, but with no success.