问题描述
我有HTML文件。我尝试了Safari上的代码,它工作正常。但是,当我在Firefox上尝试这个,它不工作。任何人都可以建议如何使它在Firefox上工作?点击撤消按钮,我想从jsp文件。多数民众赞成在我的mac上使用Safari代码上使用此代码时工作..但是当我用Firefox打开相同的文件不工作。我不确定是由于浏览器设置还是由于其他原因。我检查了Firefox的3.6.12安装在Mac上的浏览器设置也启用了JavaScript和Java ...
当我检查HTTPfox它显示错误加载内容NS_ERROR_DOCUMENT_NOT_CACHED)中的内容
任何人都可以提示出现了什么问题???
csce.unl.edu
。 I have HTML file. I tried the code on Safari and it was working fine. But when I tried this on Firefox, it’s not working.Can anyone suggest how to make it working on firefox?
On click on undo button I want to retrieve contents from the jsp file. Thats working when I used this code on safari on my mac.. but when I open the same file using firefox its not working. I am not sure is it due to browser settings or due to some other reason. I checked browser setting of firefox 3.6.12 installed on mac also it is enabled for javascript and java...
When I checked on HTTPfox it showed in Error loading content (NS_ERROR_DOCUMENT_NOT_CACHED) in the contents
Can anyone suggest whats going wrong???
XMLHttpRequests only work when the request is on the same domain as the JavaScript making the request. So, your call to xmlHttp.open()
would only work if that HTML file was hosted on csce.unl.edu
.
这篇关于为什么这个JavaScript在Safari上工作,但不是Firefox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!