[英]javascript not working when the site is hosted
I have a search page at http://www.excoflare.com/dev2011/socialnetwork?menu=biz_people_search where I have an advanced search option.我在http://www.excoflare.com/dev2011/socialnetwork?menu=biz_people_search有一个搜索页面,其中有一个高级搜索选项。
When the user clicks in it it will show up city and country options.当用户点击它时,它将显示城市和国家选项。 But it doesn't work (please go to the link) though it was working fine in localhost.
但它不起作用(请 go 到链接)虽然它在 localhost 中工作正常。 And I think path settings are OK since the CSS is working fine.
而且我认为路径设置没问题,因为 CSS 工作正常。
It's not the path, you have an extra space after the ?
这不是路径,你在
?
之后有一个额外的空间when you're requesting the file.当您请求文件时。 The server is looking for
服务器正在寻找
http://www.excoflare.com/dev2011/socialnetwork/index.php%20?menu=createOptions&ajax=ajax
----------------------------------------------------------^
Fixing that should solve your problem.解决这个问题应该可以解决您的问题。
var url = "index.php ?menu=attach_file_2&ajax=ajax";
remove extra space here在此处删除多余的空间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.