posts - 241,  comments - 116,  trackbacks - 0
          提問:
          使用YUI訪問后臺,返回之后將提示alert到前臺,但是前臺IE頁面的進度不結束。
              var callback={
              upload:function(res) {
                          var tax = [];
                          tax = YAHOO.lang.JSON.parse(res.responseText);
                          if(tax.data[0].checkResult=="1") {
                                progressBar.hide();
                          errorMessage('******');
                          }
                      }
              }
              YAHOO.util.Connect.setForm("fm",true);
              var url = contextRootPath+"/policyImport/policyImportEdit.do";
              var transaction = YAHOO.util.Connect.asyncRequest('POST',url, callback,null);
          但是如果在返回的結果中使用window.location.href跳轉(zhuǎn)當前頁面,及可以解決,但是我不想重新跳轉(zhuǎn),請問有其他解決方案嗎?

          回答:
          if(tax.data[0].checkResult=="1") { 
                            progressBar.hide(); 
                      errorMessage('******'); 

          此處不管有沒有 結果返回 都應該 progressBar.hide();  吧
          posted on 2012-12-17 15:37 墻頭草 閱讀(1607) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           
          人人游戲網(wǎng) 軟件開發(fā)網(wǎng) 貨運專家
          主站蜘蛛池模板: 墨江| 同江市| 宣城市| 玛曲县| 泰兴市| 景宁| 雅江县| 大安市| 曲麻莱县| 修文县| 敦化市| 连州市| 平顺县| 新邵县| 雷波县| 新宾| 辛集市| 张家港市| 诸城市| 固原市| 班戈县| 石嘴山市| 榕江县| 贵州省| 金门县| 广河县| 准格尔旗| 吕梁市| 青河县| 美姑县| 广水市| 彰化市| 大荔县| 沛县| 赞皇县| 金溪县| 九台市| 三台县| 鹤岗市| 西丰县| 资阳市|