如何在不使用ajax和jqury的情况下自动完成文本框

问题描述:

在我的数据库中,我有表城。我想在文本框中显示城市名称。当用户键入文本框中的任何字符而不是该字符的城市需要显示但不使用ajax和jqury。

In my database i have table City. I want to display city name in textbox. when user type any character in textbox than city of that character needs to be display but without using ajax and jqury.

你不想使用ajax或jQuery的?

当然可以做到。您确实需要使用javascript,并且在加载页面时,每个可能的值都必须已经可用。



我不明白为什么你的经理更喜欢容易出错和臃肿的解决方案,正如你已经提到的,ajax控件!这种控制通常经过充分测试并被其他人使用,为您提供良好的帮助和支持。



尝试向项目经理解释估计工时/小时数的差异。这可能会帮助他做出更好的决定。



祝你好运!
You don''t want to use ajax or jquery?
Sure it can be done. You do need to use javascript and every possible value needs to be already available when the page is loaded.

I don''t understand why your manager would prefer error prone and bloated solutions over, as you already mentioned, an ajax control! Such control is generally well tested and used by others, providing you good help and support.

Try explaining your project manager the difference in estimated work/hours. That will probably help him make better decisions.

Good luck!