AutoCompleteExtender 在失去焦点后似乎停止运行
我喜欢 AutoCompleteExtender,并且之前使用过它并取得了巨大成功。我的新老板注意到了一些他不喜欢的东西,除非我能弄清楚,否则他会让我把它扔掉换成别的东西——哎呀!这是场景: 我单击文本框,输入前 3 个字母(在本例中我们会说“pat”),然后出现与前三个首字母匹配的姓名列表。到目前为止很棒。
然后,在不选择任何内容或更改框中文本的情况下,我单击框外的位置(例如,仅在页面的空白部分上)。现在,我在文本框中单击返回,再次输入“pat” - 期望列表会再次显示。但是 - 什么也没发生。现在,如果我再输入一个字母,例如“patt”,则会返回结果。但使用相同的角色组合,什么也没有。我还注意到,如果我离开该页面一段时间(10-15 分钟)然后再回来,它也会停止响应。
有其他人经历过这种情况吗?如果是的话,您有找到解决方案吗?如果是这样,我很想听听。我真的不想强制页面刷新或其他什么,因为我确信我的老板不会喜欢那样。非常感谢任何建议。
哦 - 我尝试添加一点 JavaScript 来强制清除 onlbur 文本框 - 没有骰子 - 在上述场景中仍然没有显示任何结果。
I love the AutoCompleteExtender and have used it before with great success. My new boss noticed something he doesn't like though, and unless I can get it figured out, he is going to have me scrap it for something else - yikes! Here's the scenario :
I click on the textbox, type in the first 3 letters - we'll say "pat" for this example - and then the list of names matching those first three initials comes up. Great so far.
Then, without selecting anything or changing the text in the box, I click away from the box (just on blank part of the page for example). Now, I click back in the textbox, type in "pat" again - expecting that the list will show up again. BUT - nothing comes up. Now, if I type one more letter, say 'patt' for example, then results are returned. But with the same character combo, nada. I have also noticed that if I move away from the page for awhile, 10-15 minutes, and come back, it stops responding as well.
Has anyone else experienced this, and if so, did you come up with a solution? If so, I would love to hear it. I REALLY don't want to force a page refresh or something, as I am sure my boss is NOT going to like that. Any suggestions are greatly appreciated.
Oh - and I tried adding a little JavaScript to forcibly clear out the textbox onlbur - no dice - still doesn't bring up any results in the above scenario.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论