163邮箱编辑器和火狐不兼容,提交的时候不能上传数据

终于搞定,原来是FF里不支持attachevent,改成FF里支持的
function setLinkedField() {
  if (!oLinkField) return;
  var oForm = oLinkField.form;
  if (!oForm) return;
//
判断是否FOX
  if (oForm.addEventListener) {  
  oForm.addEventListener('submit', AttachSubmit, false); //firefox
  oForm.addEventListener('reset', AttachReset, false);
  } else if (window.attachEvent) {
  oForm.attachEvent("onsubmit", AttachSubmit);
  oForm.attachEvent("onreset", AttachReset);
  }
}
这样改下就行了

posted on 2011-08-20 16:33  落叶十九  阅读(321)  评论(0编辑  收藏  举报