托管时jQuery autocomplet无法正常工作 [英] jQuery autocomplet is not working when hosted

查看:87
本文介绍了托管时jQuery autocomplet无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过遵循在我的应用程序中创建了一个自动完成的jQuery. > [ ^ ]链接.

现在的问题是,当我托管它时,它将停止工作,而在我的计算机中可以正常工作.

IIS中是否有我正在使用的处理程序的其他特定设置,或者我缺少的其他任何设置.

谢谢
Pankaj

I created a jquery auto complete in my application by following this[^] link.

Now problem is when i host it then it stops working while it is working fine in my machine.

Is there some specific setting in IIS for handler I am using or anything else i am missing.

Thanks
Pankaj

推荐答案

我最好的猜测是,该Javascript文件的引用将丢失.根据链接,您可能也刚刚引用了在您的开发环境中工作过的js文件.

有时,相对网址在托管时会有所不同,因此自动完成的javascript文件可能会引用到错误的位置.

我建议您使用此技巧:解析多路径-Folder WebSite [ ^ ]并更正引用.

要进行快速测试,请尝试将js文件放在当前文件夹的上方和下方的文件夹中...
My best guess and bet would be missing reference of the Javascript file. Based on the link, it might have happened that you too have just referenced the js file which worked in your dev environment.

At times, the relative url are a little different while hosting and thus autocomplete javascript file might be referenced to a wrong location.

I would suggest you to use this tip: Resolving Paths in a Multi-Folder WebSite[^] and correct the reference.

For a quick test, try putting the js file in folders above and below the one it is right now...


这篇关于托管时jQuery autocomplet无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆