0 0

dojo乱码问题5

在用dojo.io.bind方法提交form表单时,能够正常提交但是在firefox下中文没有问题,在ie下出现问题,页面的编码指定为utf-8编码,代码: dojo.io.bind({
    url: "<%=request.getContextPath()%>/shortMsgAction.do?method=addShortMessage", //要提交的页面地址
     mimetype: "text/xml", //请求的页面的类型,应该设置为与你请求页面类型对应的mimetype
    timeoutSeconds: 3000,  //3秒后超时,如果为0则永不超时
     encoding: "utf-8",
     method: "POST",
    formNode:dojo.byId("writeMsg"), //指定提交的Form名称
    load: function(type, data, evt) { alert(data); }, //type should be "load", data is that we wanted
    error: function(type, error) { alert(error.message); }, //error is dojo.io.Error
    timeout: function(type) { alert("请求超时!"); }
  }); ,
各位有什么高见?谢谢!
2008年9月02日 09:36
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics