尝试在自动完成中选择对象时出现此错误
这只出现在 IE 8 和 Firefox 3.5 中,而不是 IE 7 或 FF 3.0
错误:未捕获的异常:[异常...“指定了无效或非法字符串”代码:“12”nsresult:“0x8053000c(NS_ERROR_DOM_SYNTAX_ERR)”位置:“ http://localhost/js/prototype.js行:2853” ]
P2N.Submission.autoSuggest.init('', 'place-list', 'hiddenPlaceID', '/placeSearch.ashx?cityID=&allowNewPlace=', 'place-search-spinner', {resultID : '' });更新: p2n 是
var P2N = {
returnVal: null,
errorMsg: null,
initWindow: function() {
},
addSpinner: function(el) {
if(!$(el).next('img.spinner'))$(el).insert({after: '<img src="/img/spinner_small.gif" alt="" class="spinner" />'})
},
removeSpinner: function(el) {
var spinner = $(el).next('img.spinner');
if (spinner != null) spinner.remove();
}
autoSuggest.init 我相信是原型版本 1.6 和 Scriptaclous 版本 1.8 虽然他们也在加载 jquery 版本 1.3.2 我相信这可能是所有这些冲突,但为什么它会在旧浏览器中工作?
};