this.iframeOnload = function(errorObject /* Object */){ if(!_this.currentRequest){ _this.fireNextRequest(); return; }  var req = _this.currentRequest;  if(req.formNode){  var toClean = req._contentToClean; for(var i = 0; i < toClean.length; i++) { var key = toClean[i]; if(dojo.render.html.safari){   var fNode = req.formNode; for(var j = 0; j < fNode.childNodes.length; j++){ var chNode = fNode.childNodes[j]; if(chNode.name == key){ var pNode = chNode.parentNode; pNode.removeChild(chNode); break; } } }else{ var input = req.formNode[key]; req.formNode.removeChild(input); req.formNode[key] = null; } }   if(req["_originalAction"]){ req.formNode.setAttribute("action", req._originalAction); } if(req["_originalTarget"]){ req.formNode.setAttribute("target", req._originalTarget); req.formNode.target = req._originalTarget; } }  var contentDoc = function(iframe_el){ var doc = iframe_el.contentDocument || ( (iframe_el.contentWindow)&&(iframe_el.contentWindow.document) ) || ( (iframe_el.name)&&(document.frames[iframe_el.name])&& (document.frames[iframe_el.name].document) ) || null; return doc; };  var value; var success = false;  if (errorObject){ this._callError(req, "IframeTransport Request Error: " + errorObject); }else{ var ifd = contentDoc(_this.iframe);     try{ var cmt = req.mimetype; if((cmt == "text/javascript")||(cmt == "text/json")||(cmt == "application/json")){    var js = ifd.getElementsByTagName("textarea")[0].value; if(cmt == "text/json" || cmt == "application/json") { js = "(" + js + ")"; } value = dj_eval(js); }else if(cmt == "text/html"){ value = ifd; }else{ value = ifd.getElementsByTagName("textarea")[0].value; } success = true; }catch(e){  this._callError(req, "IframeTransport Error: " + e); } }    try { if(success && dojo.lang.isFunction(req["load"])){ req.load("load", value, req); } } catch(e) { throw e; } finally { _this.currentRequest = null; _this.fireNextRequest(); } } 
this.iframeOnload=function(_673){ if(!_669.currentRequest){ _669.fireNextRequest(); return; } var req=_669.currentRequest; if(req.formNode){ var _675=req._contentToClean; for(var i=0;i<_675.length;i++){ var key=_675[i]; if(dojo.render.html.safari){ var _678=req.formNode; for(var j=0;j<_678.childNodes.length;j++){ var _67a=_678.childNodes[j]; if(_67a.name==key){ var _67b=_67a.parentNode; _67b.removeChild(_67a); break; } } }else{ var _67c=req.formNode[key]; req.formNode.removeChild(_67c); req.formNode[key]=null; } } if(req["_originalAction"]){ req.formNode.setAttribute("action",req._originalAction); } if(req["_originalTarget"]){ req.formNode.setAttribute("target",req._originalTarget); req.formNode.target=req._originalTarget; } } var _67d=function(_67e){ var doc=_67e.contentDocument||((_67e.contentWindow)&&(_67e.contentWindow.document))||((_67e.name)&&(document.frames[_67e.name])&&(document.frames[_67e.name].document))||null; return doc; }; var _680; var _681=false; if(_673){ this._callError(req,"IframeTransport Request Error: "+_673); }else{ var ifd=_67d(_669.iframe); try{ var cmt=req.mimetype; if((cmt=="text/javascript")||(cmt=="text/json")||(cmt=="application/json")){ var js=ifd.getElementsByTagName("textarea")[0].value; if(cmt=="text/json"||cmt=="application/json"){ js="("+js+")"; } _680=dj_eval(js); }else{ if(cmt=="text/html"){ _680=ifd; }else{ _680=ifd.getElementsByTagName("textarea")[0].value; } } _681=true; } catch(e){ this._callError(req,"IframeTransport Error: "+e); } } try{ if(_681&&dojo.lang.isFunction(req["load"])){ req.load("load",_680,req); } } catch(e){ throw e; } finally{ _669.currentRequest=null; _669.fireNextRequest(); } }; 
  this.iframeOnload = function(errorObject /* Object */){    if(!_this.currentRequest){      _this.fireNextRequest();      return;    }    var req = _this.currentRequest;    if(req.formNode){      // remove all the hidden content inputs      var toClean = req._contentToClean;      for(var i = 0; i < toClean.length; i++) {        var key = toClean[i];        if(dojo.render.html.safari){          //In Safari (at least 2.0.3), can't use formNode[key] syntax to find the node,          //for nodes that were dynamically added.          var fNode = req.formNode;          for(var j = 0; j < fNode.childNodes.length; j++){            var chNode = fNode.childNodes[j];            if(chNode.name == key){              var pNode = chNode.parentNode;              pNode.removeChild(chNode);              break;            }          }        }else{          var input = req.formNode[key];          req.formNode.removeChild(input);          req.formNode[key] = null;        }      }        // restore original action + target      if(req["_originalAction"]){        req.formNode.setAttribute("action", req._originalAction);      }      if(req["_originalTarget"]){        req.formNode.setAttribute("target", req._originalTarget);        req.formNode.target = req._originalTarget;      }    }    var contentDoc = function(iframe_el){      var doc = iframe_el.contentDocument || // W3        (          (iframe_el.contentWindow)&&(iframe_el.contentWindow.document)        ) ||  // IE        (          (iframe_el.name)&&(document.frames[iframe_el.name])&&          (document.frames[iframe_el.name].document)        ) || null;      return doc;    };    var value;    var success = false;    if (errorObject){        this._callError(req, "IframeTransport Request Error: " + errorObject);    }else{      var ifd = contentDoc(_this.iframe);      // handle successful returns      // FIXME: how do we determine success for iframes? Is there an equiv of      // the "status" property?        try{        var cmt = req.mimetype;        if((cmt == "text/javascript")||(cmt == "text/json")||(cmt == "application/json")){          // FIXME: not sure what to do here? try to pull some evalulable          // text from a textarea or cdata section?           // how should we set up the contract for that?          var js = ifd.getElementsByTagName("textarea")[0].value;          if(cmt == "text/json" || cmt == "application/json") { js = "(" + js + ")"; }          value = dj_eval(js);        }else if(cmt == "text/html"){          value = ifd;        }else{ // text/plain          value = ifd.getElementsByTagName("textarea")[0].value;        }        success = true;      }catch(e){         // looks like we didn't get what we wanted!        this._callError(req, "IframeTransport Error: " + e);      }    }    // don't want to mix load function errors with processing errors, thus    // a separate try..catch    try {      if(success && dojo.lang.isFunction(req["load"])){        req.load("load", value, req);      }    } catch(e) {      throw e;    } finally {      _this.currentRequest = null;      _this.fireNextRequest();    }  }
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js