Loading ...
Sorry, an error occurred while loading the content.

Re: Invalid argument error at line 7, in IE, when switching between IE's tabs.

Expand Messages
  • aniad
    Dav, So here is the story. If I run this html on IE 6.0.x with Yahoo!Toolbar (yt.dll) add-on installed/enabled, and switch between IE/Yahoo tabs, that is when
    Message 1 of 9 , Oct 1, 2008
    • 0 Attachment
      Dav,

      So here is the story. If I run this html on IE 6.0.x with
      Yahoo!Toolbar (yt.dll) add-on installed/enabled, and switch between
      IE/Yahoo tabs, that is when I get the error. Running this file in IE
      7.x does not cause the error. Given this, the urgency of this issue
      is somewhat diminished, for us, but maybe not for you guys....
      Ania.


      --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...> wrote:
      >
      >
      > aniad --
      >
      > I have created a page based on the code from your email and I am not
      able to get it to error in IE7:
      > http://blog.davglass.com/files/yui/layout18/example.php
      >
      > Does this page error for you?
      >
      > Dav
      >
      > Dav Glass
      > dav.glass@...
      > blog.davglass.com
      >
      >
      >
      >
      > + Windows: n. - The most successful computer virus, ever. +
      > + A computer without a Microsoft operating system is like a dog
      > without bricks tied to its head +
      > + A Microsoft Certified Systems Engineer is to computing what a
      > McDonalds Certified Food Specialist is to fine cuisine +
      >
      >
      >
      > ----- Original Message ----
      > > From: aniad <aniad@...>
      > > To: ydn-javascript@yahoogroups.com
      > > Sent: Monday, September 29, 2008 10:12:25 AM
      > > Subject: [ydn-javascript] Re: Invalid argument error at line 7, in
      IE, when switching between IE's tabs.
      > >
      > > Eric,
      > >
      > > I keep "playing" with various ways of rendering the nested layout,
      > > still to no avail, I persistently hit the 'invalid argument' error in
      > > IE when switching between IE's tabs. The nested layout is pretty
      > > fundamental to our app's design, so any ideas/opinions you have on
      > > this will be most appreciated.
      > >
      > > Ania.
      > >
      > >
      > > --- In ydn-javascript@yahoogroups.com, "aniad" wrote:
      > > >
      > > > Eric,
      > > >
      > > > Using the debug version of js files was not helpful. However, I was
      > > > able to isolate the problem to a very simple nested layout file. If
      > > > you render this code in IE, and then switch to some other IE
      tab, and
      > > > then come back to this one, you'll see the 'invalid argument' error.
      > > >
      > > > Here is the simple code to demonstrate.
      > > > Ania.
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      >
      > > >
      > > >
      >
      > > >
      >
      > > >
      >
      > > >
      >
      > > >
      >
      > > >
      >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > --- In ydn-javascript@yahoogroups.com, Eric Miraglia wrote:
      > > > >
      > > > > Ania,
      > > > >
      > > > > There is no debug version of the rolled-up files, but you can use
      > > this
      > > > > instead:
      > > > >
      > > > >
      > > > >
      > > >
      > >
      href="http://yui.yahooapis.com/2.5.2/build/logger/assets/skins/sam/logger.css
      > > >
      > > > > ">
      > > > >
      > > > >
      > > > >
      > > > >
      > > > >
      > > > >
      > > > > The logger stuff is optional, but if you use a logger window
      you may
      > > > > get some additional clues as to the nature of your problem.
      > > > >
      > > > > Regards,
      > > > > Eric
      > > > >
      > > > >
      > > > > On Sep 26, 2008, at 1:06 PM, aniad wrote:
      > > > >
      > > > > > Satyam,
      > > > > >
      > > > > > Please note that this is happening not when switching
      between YUI
      > > > > > tabs, but switching between the IE's tabs. In another words, I
      > > switch
      > > > > > from my app in one IE tab, to say yahoo.com in another IE
      tab, and
      > > > > > then back to my app's tab, again IE tab.
      > > > > > Also, the file into which it breaks is yahoo-dom-event.js.
      In the
      > > > > > yahoo-dom-event folder I do not see any other versions of
      this file,
      > > > > > verbose or debug, is one available?
      > > > > >
      > > > > > Thank you,
      > > > > > Ania.
      > > > > >
      > > > > > --- In ydn-javascript@yahoogroups.com, Satyam wrote:
      > > > > > >
      > > > > > > What you are showing is the minified version of ....
      something,
      > > > > > which is
      > > > > > > quite useless for humans. It looks like dom.js. Anyway, the
      > > code for
      > > > > > > the TabView has been stable and working for quite a long time
      > > and
      > > > > > that
      > > > > > > of the Dom utility for even much longer, it is hard, though
      > > > > > possible,
      > > > > > > that someone might find a bug still there. It is far more
      likely
      > > > > > that
      > > > > > > some of your code has a bug. Anyway, when you see code
      like this,
      > > > > > > switch from the -min versions to the regular versions or,
      better
      > > > > > yet,
      > > > > > > while still in debugging mode, to the -debug versions, they
      > > have far
      > > > > > > more diagnostic messages in them and are readable.
      > > > > > >
      > > > > > > Satyam
      > > > > > >
      > > > > > >
      > > > > > > aniad wrote:
      > > > > > > > I'm encountering, in IE only, an "invalid argument"
      error at
      > > > > > line 7.
      > > > > > > > This happens only when I switch between IE tabs. What I mean
      > > is
      > > > > > that
      > > > > > > > I run my app in IE, then, in IE, I create another tab say to
      > > > > > > > yahoo.com, and then switch back to my app's tab, that is
      > > when the
      > > > > > > > error happens. If I ignore the error everything seems to
      > > proceed
      > > > > > fine.
      > > > > > > >
      > > > > > > > Our application uses nested layouts, menus, tabs etc. thus
      > > it is
      > > > > > very
      > > > > > > > hard for me to pinpoint where the problem is coming from.
      > > > > > > >
      > > > > > > > Any help will be greatly appreciated.
      > > > > > > > Ania.
      > > > > > > >
      > > > > > > >
      > > > > > > > Breaking into IE's javascript debugger puts me at:
      > > > > > > >
      > > > > > > > if(typeof YAHOO=="undefined"||!YAHOO){var
      > > > > > > > YAHOO={};}YAHOO.namespace=function(){var
      > > > > > > >
      > > > > > A=arguments,E=null,C,B,D;for(C=0;C0)?
      > > > > >
      C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}if(I.length>1)
      > > > > > {I.pop();}I.push("]");}else{I.push("{");for(D
      > > > > > > > in
      > > > > > > >
      > > > > > A){if(C.hasOwnProperty(A,D)){I.push(D+E);if(C.isObject(A[D]))
      > > > > > {I.push((G>0)?
      > > > > >
      C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}}if(I.length>1)
      > > > > > {I.pop();}I.push("}");}return
      > > > > > > > I.join("");},substitute:function(Q,B,J){var
      > > > > > > > G,F,E,M,N,P,D=YAHOO.lang,L=[],C,H="dump",K="
      > > > > > > >
      > > > > > ",A="{",O="}";for(;;){G=Q.lastIndexOf(A);if(G=F)
      > > > > > {break;}C=Q.substring(G+1,F);M=C;P=null;E=M.indexOf(K);if(E>-1)
      > > > > > {P=M.substring(E+1);M=M.substring(0,E);}N=B[M];if(J)
      > > > > > {N=J(M,N,P);}if(D.isObject(N)){if(D.isArray(N))
      > > > > > {N=D.dump(N,parseInt(P,10));}else{P=P||"";var
      > > > > > > >
      > > > > > I=P.indexOf(H);if(I>-1)
      > > > > >
      {P=P.substring(4);}if(N.toString===Object.prototype.toString||I>-1)
      > > > > > {N=D.dump(N,parseInt(P,10));}else{N=N.toString();}}}else{if(!
      > > > > > D.isString(N)&&!D.isNumber(N)){N="~-"+L.length+"-
      > > > > > ~";L[L.length]=C;}}Q=Q.substring(0,G)+N+Q.substring(F
      > > > > > +1);}for(G=L.length-1;G>=0;G=G-1){Q=Q.replace(new
      > > > > > > > RegExp("~-"+G+"-~"),"{"+L[G]+"}","g");}return
      > > > > > > > Q;},trim:function(A){try{return
      > > > > > > > A.replace(/^\s+|\s+$/g,"");}catch(B){return
      > > A;}},merge:function()
      > > > > > {var
      > > > > > > > D={},B=arguments;for(var
      > > > > > > >
      > > > > > C
      > > > > > =
      > > > > > 0
      > > > > > ,A
      > > > > > =
      > > > > > B
      > > > > > .length
      > > > > > ;C
      > > > > > =
      > > > > > this
      > > > > > .left
      > > > > > &&A
      > > > > > .right
      > > > > > <
      > > > > > =
      > > > > > this
      > > > > > .right
      > > > > > &&A
      > > > > > .top
      > > > > > >
      > > > > > =
      > > > > > this
      > > > > > .top
      > > > > > &&A
      > > > > > .bottom
      > > > > > <=this.bottom);};YAHOO.util.Region.prototype.getArea=function()
      > > > > > {return((this.bottom-this.top)*(this.right-
      > > > > >
      this.left));};YAHOO.util.Region.prototype.intersect=function(E){var
      > > > > > > > C=Math.max(this.top,E.top);var
      > > D=Math.min(this.right,E.right);var
      > > > > > > > A=Math.min(this.bottom,E.bottom);var
      > > > > > > > B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new
      > > > > > > > YAHOO.util.Region(C,D,A,B);}else{return
      > > > > > > > null;}};YAHOO.util.Region.prototype.union=function(E){var
      > > > > > > > C=Math.min(this.top,E.top);var
      > > D=Math.max(this.right,E.right);var
      > > > > > > > A=Math.max(this.bottom,E.bottom);var
      > > > > > > > B=Math.min(this.left,E.left);return new
      > > > > > > >
      > > > > > YAHOO
      > > > > > .util
      > > > > >
      .Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function()
      > > > > > {return("Region
      > > > > > > > {"+"top: "+this.top+", right: "+this.right+", bottom:
      > > > > > "+this.bottom+",
      > > > > > > > left:
      > > "+this.left+"}");};YAHOO.util.Region.getRegion=function(D)
      > > > > > {var
      > > > > > > > F=YAHOO.util.Dom.getXY(D);var C=F[1];var
      > > E=F[0]+D.offsetWidth;var
      > > > > > > > A=F[1]+D.offsetHeight;var B=F[0];return new
      > > > > > > >
      > > > > > YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B)
      > > > > > {if(YAHOO.lang.isArray(A))
      > > > > > {B
      > > > > > =
      > > > > > A
      > > > > > [1
      > > > > > ];A
      > > > > > =
      > > > > > A
      > > > > > [0
      > > > > > ];}this
      > > > > > .x
      > > > > > =
      > > > > > this
      > > > > > .right
      > > > > > =
      > > > > > this
      > > > > > .left
      > > > > > =
      > > > > > this
      > > > > > [0
      > > > > > ]=
      > > > > > A
      > > > > > ;this
      > > > > >
      .y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new
      > > > > > > >
      > > > > > YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,
      > > > > > {version
      > > > > > :"2.5.1",build:"984"});YAHOO.util.CustomEvent=function(D,B,C,A)
      > > > > >
      {this.type=D;this.scope=B||window;this.silent=C;this.signature=A||
      > > > > >
      > > YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var
      > > > > > > > E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new
      > > > > > > >
      > > > > > YAHOO
      > > > > > .util
      > > > > > .CustomEvent
      > > > > > (E
      > > > > > ,this
      > > > > > ,true
      > > > > > );}this
      > > > > > .lastError
      > > > > > =
      > > > > > null
      > > > > > ;};YAHOO
      > > > > > .util
      > > > > > .CustomEvent
      > > > > > .LIST
      > > > > > =
      > > > > > 0
      > > > > > ;YAHOO
      > > > > > .util
      > > > > > .CustomEvent
      > > > > >
      .FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A)
      > > > > > {if(!B){throw
      > > > > > > > new Error("Invalid callback for subscriber to
      > > > > > > >
      > > > > > '"+this.type+"'");}if(this.subscribeEvent)
      > > > > > {this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new
      > > > > > > >
      > > > > >
      YAHOO.util.Subscriber(B,C,A));},unsubscribe:function(D,F){if(!D)
      > > > > > {return this.unsubscribeAll();}var
      > > > > > > > E=false;for(var
      > > > > > > >
      > > > > > B=0,A=this.subscribers.length;B0)
      > > > > > {A=H[0];}try{F=K.fn.call(J,A,K.obj);}catch(E)
      > > > > > {this
      > > > > >
      .lastError=E;}}else{try{F=K.fn.call(J,this.type,H,K.obj);}catch(G)
      > > > > > {this.lastError=G;}}if(false===F){if(!this.silent){}return
      > > > > > > > false;}}}return true;},unsubscribeAll:function(){for(var
      > > > > > > >
      > > > > > A=this.subscribers.length-1;A>-1;A--)
      > > > > > {this._delete(A);}this.subscribers=[];return
      > > > > > > > A;},_delete:function(A){var
      B=this.subscribers[A];if(B){delete
      > > > > > > > B.fn;delete
      > > > > > > >
      > > > > > B.obj;}this.subscribers.splice(A,1);},toString:function()
      > > > > > {return"CustomEvent:
      > > > > > > > "+"'"+this.type+"', "+"scope:
      > > > > > > >
      > > > > > "+this.scope;}};YAHOO.util.Subscriber=function(B,C,A)
      > > > > > {this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?
      > > > > > null:C
      > > > > > ;this
      > > > > >
      .override=A;};YAHOO.util.Subscriber.prototype.getScope=function(A)
      > > > > > {if(this.override){if(this.override===true){return
      > > > > > > > this.obj;}else{return this.override;}}return
      > > > > > > >
      > > > > >
      A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B)
      > > > > > {return
      > > > > > (this
      > > > > > .fn
      > > > > > =
      > > > > > =
      > > > > > A
      > > > > > &&this
      > > > > > .obj
      > > > > > =
      > > > > > =
      > > > > > B
      > > > > > );}else
      > > > > > {return
      > > > > >
      (this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function()
      > > > > > {return"Subscriber
      > > > > > > > { obj: "+this.obj+", override: "+(this.override||"no")+"
      > > > > > > > }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var
      > > > > > H=false;var
      > > > > > > > I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var
      B=[];var
      > > > > > A=0;var
      > > > > > > >
      > > > > >
      > > >
      > >
      D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var
      > > > > > > > K=this;var
      > > > > > > >
      > > > > > L=function()
      > > > > > {K
      > > > > > ._tryPreloadAttach
      > > > > > ();};this
      > > > > > ._interval
      > > > > >
      > > =setInterval(L,this.POLL_INTERVAL);}},onAvailable:function(P,M,Q,O,N)
      > > > > > {var
      > > > > > > > K=(YAHOO.lang.isString(P))?[P]:P;for(var
      > > > > > > > L=0;L-1;O--){U=(this.removeListener(L[O],K,T)&&U);}return
      > > > > > > > U;}}if(!T||!T.call){return
      > > > > > > >
      > > > > > this.purgeElement(L,false,K);}if("unload"==K)
      > > > > >
      {for(O=J.length-1;O>-1;O--){V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T)
      > > > > > {J.splice(O,1);return
      > > > > > > > true;}}return false;}var P=null;var
      > > > > > > > Q=arguments[3];if("undefined"===typeof
      > > > > > > >
      Q){Q=this._getCacheIndex(L,K,T);}if(Q>=0){P=I[Q];}if(!L||!P)
      > > > > > {return
      > > > > > > > false;}if(this.useLegacyEvent(L,K)){var
      > > > > > N=this.getLegacyIndex(L,K);var
      > > > > > > > M=E[N];if(M){for(O=0,R=M.length;O0&&F.length>0);}var
      P=[];var
      > > > > > > > R=function(T,U){var
      > > > > > > >
      > > > > > S=T;if(U.override){if(U.override===true)
      > > > > > {S=U.obj;}else{S=U.override;}}U.fn.call(S,U.obj);};var
      > > > > > > >
      > > > > > L,K,O,N,M=[];for(L=0,K=F.length;L-1;L--){O=F[L];if(!O||!O.id)
      > > > > > {F.splice(L,
      > > > > > 1
      > > > > > );}}this
      > > > > > .startInterval
      > > > > > ();}else
      > > > > > {clearInterval
      > > > > > (this
      > > > > > ._interval
      > > > > > );this
      > > > > >
      > > ._interval=null;}this.locked=false;},purgeElement:function(O,P,R){var
      > > > > > > > M=(YAHOO.lang.isString(O))?this.getEl(O):O;var
      > > > > > > >
      > > Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var
      > > > > > > >
      > > > > >
      L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes)
      > > > > > {for(N=0,K=M.childNodes.length;N-1;M--){L=I[M];if(L)
      > > > > > {K
      > > > > > .removeListener
      > > > > > (L
      > > > > > [K
      > > > > > .EL
      > > > > > ],L
      > > > > > [K
      > > > > > .TYPE
      > > > > > ],L
      > > > > > [K
      > > > > > .FN
      > > > > > ],M
      > > > > > );}}L
      > > > > > =
      > > > > > null
      > > > > > ;}G
      > > > > > =
      > > > > > null
      > > > > > ;K
      > > > > >
      > > ._simpleRemove(window,"unload",K._unload);},_getScrollLeft:function()
      > > > > > {return
      > > > > > > > this._getScroll()[1];},_getScrollTop:function(){return
      > > > > > > > this._getScroll()[0];},_getScroll:function(){var
      > > > > > > >
      > > > > > K=document.documentElement,L=document.body;if(K&&(K.scrollTop||
      > > > > > K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L)
      > > > > > {return
      > > > > >
      [L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function()
      > > > > > {},_simpleAdd:function(){if(window.addEventListener){return
      > > > > > > >
      > > > > > function(M,N,L,K){M.addEventListener(N,L,
      > > > > > (K));};}else{if(window.attachEvent){return
      > > > > > > > function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return
      > > > > > > >
      > > > > > function(){};}}}(),_simpleRemove:function()
      > > > > > {if(window.removeEventListener){return
      > > > > > > >
      > > > > > function(M,N,L,K){M.removeEventListener(N,L,
      > > > > > (K));};}else{if(window.detachEvent){return
      > > > > > > > function(L,M,K){L.detachEvent("on"+M,K);};}else{return
      > > > > > > > function(){};}}}()};}();(function(){var
      > > > > > > > EU=YAHOO.util.Event;EU.on=EU.addListener; /* DOMReady: based
      > > on
      > > > > > work
      > > > > > > > by: Dean Edwards/John Resig/Matthias Miller */
      > > > > > > >
      > > > > > if(EU.isIE)
      > > > > > {YAHOO
      > > > > > .util
      > > > > > .Event
      > > > > > .onDOMReady
      > > > > > (YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var
      > > > > > > >
      > > > > > n=document.createElement("p");EU._dri=setInterval(function()
      > > > > > {try
      > > > > > {n
      > > > > > .doScroll
      > > > > > ("left
      > > > > >
      > > ");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex)
      > > > > > {}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > > ------------------------------------
      > > > > > > >
      > > > > > > > Yahoo! Groups Links
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > ----------------------------------------------------------
      > > > > > > >
      > > > > > > >
      > > > > > > > No virus found in this incoming message.
      > > > > > > > Checked by AVG - http://www.avg.com
      > > > > > > > Version: 8.0.169 / Virus Database: 270.7.3/1693 -
      Release Date:
      > > > > > 26/09/2008 7:35
      > > > > > > >
      > > > > > > >
      > > > > > >
      > > > > >
      > > > > >
      > > > > >
      > > > >
      > > >
      > >
      > >
      > >
      > > ------------------------------------
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      >
    • Dav Glass
      aniad -- I was able to see what was happening when I checked it in IE with a tab plugin installed.. Looks like when the page is resizing, one of the unit s is
      Message 2 of 9 , Oct 1, 2008
      • 0 Attachment
        aniad --

        I was able to see what was happening when I checked it in IE with a tab plugin installed..

        Looks like when the page is resizing, one of the unit's is getting sized to a negative height.

        To fix this, you should set a minHeight/minWidth on the layout unit's:
        http://developer.yahoo.com/yui/docs/YAHOO.widget.LayoutUnit.html#config_minHeight

        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com




        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +



        ----- Original Message ----
        > From: aniad <aniad@...>
        > To: ydn-javascript@yahoogroups.com
        > Sent: Wednesday, October 1, 2008 12:51:47 PM
        > Subject: [ydn-javascript] Re: Invalid argument error at line 7, in IE, when switching between IE's tabs.
        >
        > Dav,
        >
        > So here is the story. If I run this html on IE 6.0.x with
        > Yahoo!Toolbar (yt.dll) add-on installed/enabled, and switch between
        > IE/Yahoo tabs, that is when I get the error. Running this file in IE
        > 7.x does not cause the error. Given this, the urgency of this issue
        > is somewhat diminished, for us, but maybe not for you guys....
        > Ania.
        >
        >
        > --- In ydn-javascript@yahoogroups.com, Dav Glass wrote:
        > >
        > >
        > > aniad --
        > >
        > > I have created a page based on the code from your email and I am not
        > able to get it to error in IE7:
        > > http://blog.davglass.com/files/yui/layout18/example.php
        > >
        > > Does this page error for you?
        > >
        > > Dav
        > >
        > > Dav Glass
        > > dav.glass@...
        > > blog.davglass.com
        > >
        > >
        > >
        > >
        > > + Windows: n. - The most successful computer virus, ever. +
        > > + A computer without a Microsoft operating system is like a dog
        > > without bricks tied to its head +
        > > + A Microsoft Certified Systems Engineer is to computing what a
        > > McDonalds Certified Food Specialist is to fine cuisine +
        > >
        > >
        > >
        > > ----- Original Message ----
        > > > From: aniad
        > > > To: ydn-javascript@yahoogroups.com
        > > > Sent: Monday, September 29, 2008 10:12:25 AM
        > > > Subject: [ydn-javascript] Re: Invalid argument error at line 7, in
        > IE, when switching between IE's tabs.
        > > >
        > > > Eric,
        > > >
        > > > I keep "playing" with various ways of rendering the nested layout,
        > > > still to no avail, I persistently hit the 'invalid argument' error in
        > > > IE when switching between IE's tabs. The nested layout is pretty
        > > > fundamental to our app's design, so any ideas/opinions you have on
        > > > this will be most appreciated.
        > > >
        > > > Ania.
        > > >
        > > >
        > > > --- In ydn-javascript@yahoogroups.com, "aniad" wrote:
        > > > >
        > > > > Eric,
        > > > >
        > > > > Using the debug version of js files was not helpful. However, I was
        > > > > able to isolate the problem to a very simple nested layout file. If
        > > > > you render this code in IE, and then switch to some other IE
        > tab, and
        > > > > then come back to this one, you'll see the 'invalid argument' error.
        > > > >
        > > > > Here is the simple code to demonstrate.
        > > > > Ania.
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > >
        > > > >
        > > > >
        > >
        > > > >
        > >
        > > > >
        > >
        > > > >
        > >
        > > > >
        > >
        > > > >
        > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > >
        > > > > --- In ydn-javascript@yahoogroups.com, Eric Miraglia wrote:
        > > > > >
        > > > > > Ania,
        > > > > >
        > > > > > There is no debug version of the rolled-up files, but you can use
        > > > this
        > > > > > instead:
        > > > > >
        > > > > >
        > > > > >
        > > > >
        > > >
        > href="http://yui.yahooapis.com/2.5.2/build/logger/assets/skins/sam/logger.css
        > > > >
        > > > > > ">
        > > > > >
        > > > > >
        > > > > >
        > > > > >
        > > > > >
        > > > > >
        > > > > > The logger stuff is optional, but if you use a logger window
        > you may
        > > > > > get some additional clues as to the nature of your problem.
        > > > > >
        > > > > > Regards,
        > > > > > Eric
        > > > > >
        > > > > >
        > > > > > On Sep 26, 2008, at 1:06 PM, aniad wrote:
        > > > > >
        > > > > > > Satyam,
        > > > > > >
        > > > > > > Please note that this is happening not when switching
        > between YUI
        > > > > > > tabs, but switching between the IE's tabs. In another words, I
        > > > switch
        > > > > > > from my app in one IE tab, to say yahoo.com in another IE
        > tab, and
        > > > > > > then back to my app's tab, again IE tab.
        > > > > > > Also, the file into which it breaks is yahoo-dom-event.js.
        > In the
        > > > > > > yahoo-dom-event folder I do not see any other versions of
        > this file,
        > > > > > > verbose or debug, is one available?
        > > > > > >
        > > > > > > Thank you,
        > > > > > > Ania.
        > > > > > >
        > > > > > > --- In ydn-javascript@yahoogroups.com, Satyam wrote:
        > > > > > > >
        > > > > > > > What you are showing is the minified version of ....
        > something,
        > > > > > > which is
        > > > > > > > quite useless for humans. It looks like dom.js. Anyway, the
        > > > code for
        > > > > > > > the TabView has been stable and working for quite a long time
        > > > and
        > > > > > > that
        > > > > > > > of the Dom utility for even much longer, it is hard, though
        > > > > > > possible,
        > > > > > > > that someone might find a bug still there. It is far more
        > likely
        > > > > > > that
        > > > > > > > some of your code has a bug. Anyway, when you see code
        > like this,
        > > > > > > > switch from the -min versions to the regular versions or,
        > better
        > > > > > > yet,
        > > > > > > > while still in debugging mode, to the -debug versions, they
        > > > have far
        > > > > > > > more diagnostic messages in them and are readable.
        > > > > > > >
        > > > > > > > Satyam
        > > > > > > >
        > > > > > > >
        > > > > > > > aniad wrote:
        > > > > > > > > I'm encountering, in IE only, an "invalid argument"
        > error at
        > > > > > > line 7.
        > > > > > > > > This happens only when I switch between IE tabs. What I mean
        > > > is
        > > > > > > that
        > > > > > > > > I run my app in IE, then, in IE, I create another tab say to
        > > > > > > > > yahoo.com, and then switch back to my app's tab, that is
        > > > when the
        > > > > > > > > error happens. If I ignore the error everything seems to
        > > > proceed
        > > > > > > fine.
        > > > > > > > >
        > > > > > > > > Our application uses nested layouts, menus, tabs etc. thus
        > > > it is
        > > > > > > very
        > > > > > > > > hard for me to pinpoint where the problem is coming from.
        > > > > > > > >
        > > > > > > > > Any help will be greatly appreciated.
        > > > > > > > > Ania.
        > > > > > > > >
        > > > > > > > >
        > > > > > > > > Breaking into IE's javascript debugger puts me at:
        > > > > > > > >
        > > > > > > > > if(typeof YAHOO=="undefined"||!YAHOO){var
        > > > > > > > > YAHOO={};}YAHOO.namespace=function(){var
        > > > > > > > >
        > > > > > > A=arguments,E=null,C,B,D;for(C=0;C0)?
        > > > > > >
        > C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}if(I.length>1)
        > > > > > > {I.pop();}I.push("]");}else{I.push("{");for(D
        > > > > > > > > in
        > > > > > > > >
        > > > > > > A){if(C.hasOwnProperty(A,D)){I.push(D+E);if(C.isObject(A[D]))
        > > > > > > {I.push((G>0)?
        > > > > > >
        > C.dump(A[D],G-1):J);}else{I.push(A[D]);}I.push(H);}}if(I.length>1)
        > > > > > > {I.pop();}I.push("}");}return
        > > > > > > > > I.join("");},substitute:function(Q,B,J){var
        > > > > > > > > G,F,E,M,N,P,D=YAHOO.lang,L=[],C,H="dump",K="
        > > > > > > > >
        > > > > > > ",A="{",O="}";for(;;){G=Q.lastIndexOf(A);if(G=F)
        > > > > > > {break;}C=Q.substring(G+1,F);M=C;P=null;E=M.indexOf(K);if(E>-1)
        > > > > > > {P=M.substring(E+1);M=M.substring(0,E);}N=B[M];if(J)
        > > > > > > {N=J(M,N,P);}if(D.isObject(N)){if(D.isArray(N))
        > > > > > > {N=D.dump(N,parseInt(P,10));}else{P=P||"";var
        > > > > > > > >
        > > > > > > I=P.indexOf(H);if(I>-1)
        > > > > > >
        > {P=P.substring(4);}if(N.toString===Object.prototype.toString||I>-1)
        > > > > > > {N=D.dump(N,parseInt(P,10));}else{N=N.toString();}}}else{if(!
        > > > > > > D.isString(N)&&!D.isNumber(N)){N="~-"+L.length+"-
        > > > > > > ~";L[L.length]=C;}}Q=Q.substring(0,G)+N+Q.substring(F
        > > > > > > +1);}for(G=L.length-1;G>=0;G=G-1){Q=Q.replace(new
        > > > > > > > > RegExp("~-"+G+"-~"),"{"+L[G]+"}","g");}return
        > > > > > > > > Q;},trim:function(A){try{return
        > > > > > > > > A.replace(/^\s+|\s+$/g,"");}catch(B){return
        > > > A;}},merge:function()
        > > > > > > {var
        > > > > > > > > D={},B=arguments;for(var
        > > > > > > > >
        > > > > > > C
        > > > > > > =
        > > > > > > 0
        > > > > > > ,A
        > > > > > > =
        > > > > > > B
        > > > > > > .length
        > > > > > > ;C
        > > > > > > =
        > > > > > > this
        > > > > > > .left
        > > > > > > &&A
        > > > > > > .right
        > > > > > > <
        > > > > > > =
        > > > > > > this
        > > > > > > .right
        > > > > > > &&A
        > > > > > > .top
        > > > > > > >
        > > > > > > =
        > > > > > > this
        > > > > > > .top
        > > > > > > &&A
        > > > > > > .bottom
        > > > > > > <=this.bottom);};YAHOO.util.Region.prototype.getArea=function()
        > > > > > > {return((this.bottom-this.top)*(this.right-
        > > > > > >
        > this.left));};YAHOO.util.Region.prototype.intersect=function(E){var
        > > > > > > > > C=Math.max(this.top,E.top);var
        > > > D=Math.min(this.right,E.right);var
        > > > > > > > > A=Math.min(this.bottom,E.bottom);var
        > > > > > > > > B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new
        > > > > > > > > YAHOO.util.Region(C,D,A,B);}else{return
        > > > > > > > > null;}};YAHOO.util.Region.prototype.union=function(E){var
        > > > > > > > > C=Math.min(this.top,E.top);var
        > > > D=Math.max(this.right,E.right);var
        > > > > > > > > A=Math.max(this.bottom,E.bottom);var
        > > > > > > > > B=Math.min(this.left,E.left);return new
        > > > > > > > >
        > > > > > > YAHOO
        > > > > > > .util
        > > > > > >
        > .Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function()
        > > > > > > {return("Region
        > > > > > > > > {"+"top: "+this.top+", right: "+this.right+", bottom:
        > > > > > > "+this.bottom+",
        > > > > > > > > left:
        > > > "+this.left+"}");};YAHOO.util.Region.getRegion=function(D)
        > > > > > > {var
        > > > > > > > > F=YAHOO.util.Dom.getXY(D);var C=F[1];var
        > > > E=F[0]+D.offsetWidth;var
        > > > > > > > > A=F[1]+D.offsetHeight;var B=F[0];return new
        > > > > > > > >
        > > > > > > YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B)
        > > > > > > {if(YAHOO.lang.isArray(A))
        > > > > > > {B
        > > > > > > =
        > > > > > > A
        > > > > > > [1
        > > > > > > ];A
        > > > > > > =
        > > > > > > A
        > > > > > > [0
        > > > > > > ];}this
        > > > > > > .x
        > > > > > > =
        > > > > > > this
        > > > > > > .right
        > > > > > > =
        > > > > > > this
        > > > > > > .left
        > > > > > > =
        > > > > > > this
        > > > > > > [0
        > > > > > > ]=
        > > > > > > A
        > > > > > > ;this
        > > > > > >
        > .y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new
        > > > > > > > >
        > > > > > > YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,
        > > > > > > {version
        > > > > > > :"2.5.1",build:"984"});YAHOO.util.CustomEvent=function(D,B,C,A)
        > > > > > >
        > {this.type=D;this.scope=B||window;this.silent=C;this.signature=A||
        > > > > > >
        > > > YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var
        > > > > > > > > E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new
        > > > > > > > >
        > > > > > > YAHOO
        > > > > > > .util
        > > > > > > .CustomEvent
        > > > > > > (E
        > > > > > > ,this
        > > > > > > ,true
        > > > > > > );}this
        > > > > > > .lastError
        > > > > > > =
        > > > > > > null
        > > > > > > ;};YAHOO
        > > > > > > .util
        > > > > > > .CustomEvent
        > > > > > > .LIST
        > > > > > > =
        > > > > > > 0
        > > > > > > ;YAHOO
        > > > > > > .util
        > > > > > > .CustomEvent
        > > > > > >
        > .FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A)
        > > > > > > {if(!B){throw
        > > > > > > > > new Error("Invalid callback for subscriber to
        > > > > > > > >
        > > > > > > '"+this.type+"'");}if(this.subscribeEvent)
        > > > > > > {this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new
        > > > > > > > >
        > > > > > >
        > YAHOO.util.Subscriber(B,C,A));},unsubscribe:function(D,F){if(!D)
        > > > > > > {return this.unsubscribeAll();}var
        > > > > > > > > E=false;for(var
        > > > > > > > >
        > > > > > > B=0,A=this.subscribers.length;B0)
        > > > > > > {A=H[0];}try{F=K.fn.call(J,A,K.obj);}catch(E)
        > > > > > > {this
        > > > > > >
        > .lastError=E;}}else{try{F=K.fn.call(J,this.type,H,K.obj);}catch(G)
        > > > > > > {this.lastError=G;}}if(false===F){if(!this.silent){}return
        > > > > > > > > false;}}}return true;},unsubscribeAll:function(){for(var
        > > > > > > > >
        > > > > > > A=this.subscribers.length-1;A>-1;A--)
        > > > > > > {this._delete(A);}this.subscribers=[];return
        > > > > > > > > A;},_delete:function(A){var
        > B=this.subscribers[A];if(B){delete
        > > > > > > > > B.fn;delete
        > > > > > > > >
        > > > > > > B.obj;}this.subscribers.splice(A,1);},toString:function()
        > > > > > > {return"CustomEvent:
        > > > > > > > > "+"'"+this.type+"', "+"scope:
        > > > > > > > >
        > > > > > > "+this.scope;}};YAHOO.util.Subscriber=function(B,C,A)
        > > > > > > {this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?
        > > > > > > null:C
        > > > > > > ;this
        > > > > > >
        > .override=A;};YAHOO.util.Subscriber.prototype.getScope=function(A)
        > > > > > > {if(this.override){if(this.override===true){return
        > > > > > > > > this.obj;}else{return this.override;}}return
        > > > > > > > >
        > > > > > >
        > A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B)
        > > > > > > {return
        > > > > > > (this
        > > > > > > .fn
        > > > > > > =
        > > > > > > =
        > > > > > > A
        > > > > > > &&this
        > > > > > > .obj
        > > > > > > =
        > > > > > > =
        > > > > > > B
        > > > > > > );}else
        > > > > > > {return
        > > > > > >
        > (this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function()
        > > > > > > {return"Subscriber
        > > > > > > > > { obj: "+this.obj+", override: "+(this.override||"no")+"
        > > > > > > > > }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var
        > > > > > > H=false;var
        > > > > > > > > I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var
        > B=[];var
        > > > > > > A=0;var
        > > > > > > > >
        > > > > > >
        > > > >
        > > >
        > D={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,startInterval:function(){if(!this._interval){var
        > > > > > > > > K=this;var
        > > > > > > > >
        > > > > > > L=function()
        > > > > > > {K
        > > > > > > ._tryPreloadAttach
        > > > > > > ();};this
        > > > > > > ._interval
        > > > > > >
        > > > =setInterval(L,this.POLL_INTERVAL);}},onAvailable:function(P,M,Q,O,N)
        > > > > > > {var
        > > > > > > > > K=(YAHOO.lang.isString(P))?[P]:P;for(var
        > > > > > > > > L=0;L-1;O--){U=(this.removeListener(L[O],K,T)&&U);}return
        > > > > > > > > U;}}if(!T||!T.call){return
        > > > > > > > >
        > > > > > > this.purgeElement(L,false,K);}if("unload"==K)
        > > > > > >
        > {for(O=J.length-1;O>-1;O--){V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T)
        > > > > > > {J.splice(O,1);return
        > > > > > > > > true;}}return false;}var P=null;var
        > > > > > > > > Q=arguments[3];if("undefined"===typeof
        > > > > > > > >
        > Q){Q=this._getCacheIndex(L,K,T);}if(Q>=0){P=I[Q];}if(!L||!P)
        > > > > > > {return
        > > > > > > > > false;}if(this.useLegacyEvent(L,K)){var
        > > > > > > N=this.getLegacyIndex(L,K);var
        > > > > > > > > M=E[N];if(M){for(O=0,R=M.length;O0&&F.length>0);}var
        > P=[];var
        > > > > > > > > R=function(T,U){var
        > > > > > > > >
        > > > > > > S=T;if(U.override){if(U.override===true)
        > > > > > > {S=U.obj;}else{S=U.override;}}U.fn.call(S,U.obj);};var
        > > > > > > > >
        > > > > > > L,K,O,N,M=[];for(L=0,K=F.length;L-1;L--){O=F[L];if(!O||!O.id)
        > > > > > > {F.splice(L,
        > > > > > > 1
        > > > > > > );}}this
        > > > > > > .startInterval
        > > > > > > ();}else
        > > > > > > {clearInterval
        > > > > > > (this
        > > > > > > ._interval
        > > > > > > );this
        > > > > > >
        > > > ._interval=null;}this.locked=false;},purgeElement:function(O,P,R){var
        > > > > > > > > M=(YAHOO.lang.isString(O))?this.getEl(O):O;var
        > > > > > > > >
        > > > Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var
        > > > > > > > >
        > > > > > >
        > L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes)
        > > > > > > {for(N=0,K=M.childNodes.length;N-1;M--){L=I[M];if(L)
        > > > > > > {K
        > > > > > > .removeListener
        > > > > > > (L
        > > > > > > [K
        > > > > > > .EL
        > > > > > > ],L
        > > > > > > [K
        > > > > > > .TYPE
        > > > > > > ],L
        > > > > > > [K
        > > > > > > .FN
        > > > > > > ],M
        > > > > > > );}}L
        > > > > > > =
        > > > > > > null
        > > > > > > ;}G
        > > > > > > =
        > > > > > > null
        > > > > > > ;K
        > > > > > >
        > > > ._simpleRemove(window,"unload",K._unload);},_getScrollLeft:function()
        > > > > > > {return
        > > > > > > > > this._getScroll()[1];},_getScrollTop:function(){return
        > > > > > > > > this._getScroll()[0];},_getScroll:function(){var
        > > > > > > > >
        > > > > > > K=document.documentElement,L=document.body;if(K&&(K.scrollTop||
        > > > > > > K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L)
        > > > > > > {return
        > > > > > >
        > [L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function()
        > > > > > > {},_simpleAdd:function(){if(window.addEventListener){return
        > > > > > > > >
        > > > > > > function(M,N,L,K){M.addEventListener(N,L,
        > > > > > > (K));};}else{if(window.attachEvent){return
        > > > > > > > > function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return
        > > > > > > > >
        > > > > > > function(){};}}}(),_simpleRemove:function()
        > > > > > > {if(window.removeEventListener){return
        > > > > > > > >
        > > > > > > function(M,N,L,K){M.removeEventListener(N,L,
        > > > > > > (K));};}else{if(window.detachEvent){return
        > > > > > > > > function(L,M,K){L.detachEvent("on"+M,K);};}else{return
        > > > > > > > > function(){};}}}()};}();(function(){var
        > > > > > > > > EU=YAHOO.util.Event;EU.on=EU.addListener; /* DOMReady: based
        > > > on
        > > > > > > work
        > > > > > > > > by: Dean Edwards/John Resig/Matthias Miller */
        > > > > > > > >
        > > > > > > if(EU.isIE)
        > > > > > > {YAHOO
        > > > > > > .util
        > > > > > > .Event
        > > > > > > .onDOMReady
        > > > > > > (YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var
        > > > > > > > >
        > > > > > > n=document.createElement("p");EU._dri=setInterval(function()
        > > > > > > {try
        > > > > > > {n
        > > > > > > .doScroll
        > > > > > > ("left
        > > > > > >
        > > > ");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex)
        > > > > > > {}},EU.POLL_INTERVAL);}else{if(EU.webkit&&EU.webkit
        > > > > > > > >
        > > > > > > > >
        > > > > > > > >
        > > > > > > > >
        > > > > > > > > ------------------------------------
        > > > > > > > >
        > > > > > > > > Yahoo! Groups Links
        > > > > > > > >
        > > > > > > > >
        > > > > > > > >
        > > > > > > > >
        > > > > > > ----------------------------------------------------------
        > > > > > > > >
        > > > > > > > >
        > > > > > > > > No virus found in this incoming message.
        > > > > > > > > Checked by AVG - http://www.avg.com
        > > > > > > > > Version: 8.0.169 / Virus Database: 270.7.3/1693 -
        > Release Date:
        > > > > > > 26/09/2008 7:35
        > > > > > > > >
        > > > > > > > >
        > > > > > > >
        > > > > > >
        > > > > > >
        > > > > > >
        > > > > >
        > > > >
        > > >
        > > >
        > > >
        > > > ------------------------------------
        > > >
        > > > Yahoo! Groups Links
        > > >
        > > >
        > > >
        > >
        >
        >
        >
        > ------------------------------------
        >
        > Yahoo! Groups Links
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.