URI 中含有禁止使用的字符... IE
我的 IE 遇到了这个新问题,它在 Internet Explorer 中不断收到此 URI 不允许的字符错误。
调用是通过 AJAX 进行的,它在 LOCALHOST 中工作正常,但在服务器上,它根本不起作用。
被调用的 url 示例(抱歉,为了披露问题,必须 xxxx 某些部分)
http://sandbox.xxxxxxxxx.pt/beta1/gestao/xxxxxxx_ctr/?%23&_=1302607702688 (this one doesn't work in IE)
http://localhost/xxxxxxxxx/gestao/xxxxxxx_ctr/?%23&_=1302608090193 (this one does)
这些允许的 uri 字符对于“好”浏览器来说就像一个魅力。
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\+\-';
有谁知道这个问题的解决方案并且愿意帮助我吗?
谢谢。
I have this new problem with IE, it keeps getting this URI disallowed characters error in Internet explorer.
The calls are made through AJAX and it works fine in the LOCALHOST, but on the server, it doesn't work at all.
Examples of the url called (sorry, had to xxxx some parts for disclosure issues)
http://sandbox.xxxxxxxxx.pt/beta1/gestao/xxxxxxx_ctr/?%23&_=1302607702688 (this one doesn't work in IE)
http://localhost/xxxxxxxxx/gestao/xxxxxxx_ctr/?%23&_=1302608090193 (this one does)
These permitted uri chars work like a charm for the "good" browsers.
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\+\-';
Does anyone happens to know the solution to this problem and would be kind enough to help me?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决了。
添加
?#
是因为 jQuery ajax 请求中的“cache”选项设置为 false,因此 IE 缓存没有启动。只需删除 AJAX 请求中的缓存阻止选项即可添加了一个通过 post 发送的“随机”数字,以防止 IE 缓存。
至少目前它运行良好。
谢谢你们花时间来帮助我。
Solved it.
the
?#
was being added because the "cache" option was set to false in the jQuery ajax request, so the IE caching didn't kicked in.Simply removed the cache preventing option in the AJAX request and added a "random" number to be sent via post, to prevent IE cache.
At least for now it's working fine.
Thank you guys for the time spent trying to help me.