YAHOO.widget.DS_XHR是否可以跨域加载数据?
我正在尝试构建一个自动完成脚本。该字典位于单独的域上,这似乎破坏了自动完成功能。
我使用YAHOO.widget.DS_XHR加载数据源,是否可以使用此功能跨域加载数据?如果没有,我应该使用另一种方法吗?
I am trying to build an autocomplete script. The dictionary is on a separate domain and that seems to break the autocomplete.
I am use YAHOO.widget.DS_XHR to load the datasource, is it possible to use this function to load data cross-domain? If not is there another method I should be using?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
否,因为此功能取决于浏览器限制设置。
No, because this functionality depends on the browsers restriction setting.
我不得不使用 YAHOO.widget.DS_ScriptNode() 代替。
I had to use YAHOO.widget.DS_ScriptNode() instead.