加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

dojo.io.iframe.send在dojo 1.8中第二次不发送请求

发布时间:2020-12-16 21:18:23 所属栏目:百科 来源:网络整理
导读:示例代码段 this._deferred = dojo.io.iframe.send({ url: "/Some/Servie",method: "post",handleAs: 'html',content: {},load: function(response,ioArgs){ //DO successfull callback },error: function(response,ioArgs){ // DO Failer callback } }); 脚
示例代码段

this._deferred = dojo.io.iframe.send({
        url: "/Some/Servie",method: "post",handleAs: 'html',content: {},load: function(response,ioArgs){
            //DO successfull callback
        },error: function(response,ioArgs){  
            // DO Failer callback
        }
    });

脚步

>单击“提交”按钮发送请求并成功获得响应
>再次点击提交按钮…请求永不发送…

感谢任何帮助

解决方法

我不能谈论1.8,但我使用的是dojo 1.6并且遇到了一个非常类似的问题,我用以下方法解决了这个问题:

dojo.io.iframe._currentDfd = null; //insert this line
dojo.io.iframe.send
({...

*已在Chrome版本25.0.1364.152 m中验证

资料来源:http://mail.dojotoolkit.org/pipermail/dojo-interest/2012-May/066109.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读