Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12954
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 38550 - 38579 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#38550 From: Satyam <satyam@...>
Date: Wed Oct 1, 2008 7:49 pm
Subject: Re: Re: Callback success in namespace not executing in namespace?
satyamutsa
Send Email Send Email
 
Globals should be avoided as much as possible. Normally a page is a mixture of code you wrote and libraries from external sources, ad providers, mashups and so on.   If you have full control of your page, it should not be a problem but if you don't there will be trouble.  You might have full control now but suddenly you think that adding some Map software here or there might be cool, and there you have an external library with a non-trivial chance of collision with your global names.  So, it doesn't matter where you set them, the issue is, don't let them become global.  YAHOO is already well known name and is, in practice, reserved so nobody would use them in anything that might become global, but beyond that, you are taking your chances.

Notice that all variables you set within the anonymous function can be accessed simply by their names, as you are doing with textObj, you don't need to create an object to hold them.  The technique of creating an object (specially, as in this case, when it won't be instanced) is used to avoid taking up global name space, you create a single object and then put everything under it.  When you already provide hiding by the anonymous function, it serves no purpose to further hide them under an object.

Regarding setting the scope for the callback, amongst the properties of the callback object there is one called "scope", which you may not need if you drop the testObj itself, see how simple it gets, and quite linear as well, instead of having lots of labeled pieces of code which, in order to read, you have to put together following references to named items, things are right where they are used, you can follow through the code in one sequence, except for those that are used more than once, which then do get a name:

(function(){
	var 	CON = YAHOO.util.Conn,
		EVENT = YAHOO.util.Event,
		DOM = YAHOO.util.Dom,

		variableName = "INIT";

	var logit = function (str) {
	    var LOG = DOM.get('log');
	    LOG.innerHTML += str + "<BR>";
	};

	var dump = function() {
	        logit(variableName);
	};

	EVENT.onDOMReady(function(){
		dump();
	        CON.asyncRequest('GET','http://callbackurl',{
			success : function(r){
				variableName = "YES";
				dump();
			},
			failure : function(r){
				variableName = "NO";
				dump();
			}
		});
	});
}());
I think I will call this style the "simple tale" while the other is the "mystery novel", you know, you start developing the characters, giving them names and features and all the while you are asking yourself, how did it all get to this? and then, in the end, you learn that it all came out of onDOMReady.  The simple tale doesn't have that much mystery, not many characters (I have three shortcuts, two function names and one variable and that's all) and no suspense.

Satyam


Jeff wrote:
Thanks for the feedback Satyam.

I'll be sure to use JSLint from now on.

> Since this doesn't seem to be a library which should have a publicly
> accessible reference to it, and you already have it all enclosed in an
> anonymous function, I wonder why would you care to declare a namespace
> and bother with scoping and such, it can all be contained within the
> anonymous function without 'this' and that.

I was building off of one of the YUI examples for drag and drop.

Ideally I would like to establish a method of developing small applications such that they would all be initialized through the onDOMReady event, like App1.init(), App2.init(), etc. I was experimenting with YAHOO's namespaces when I came to the previously described problem. I included in the bottom of this reply what I had done in the past. (var obj = {...})

> your shortcut variables CON, EVENT and DOM will be in the global namespace

I had intended for that to happen -- I wanted to stick them in a "common" file. Sticking them in the anonymous function was not quite what I had in mind. I would like to do something like:

//common.js
var CON=...
var DOM=...
var EVENT=...

// app1.js
var app1 = {...}

** This leads to another question. Would it be better to set the global vars in multiple anonymous functions (I guess they wouldn't be global then)? or in one common function?

> The scope is set correctly when the callback
> is set "this.callbackSuccess" is found without a problem, but when the
> callback gets executed, the scope is 'window' and there is no
> 'window.callbackSuccess'.

In this case, is there an accepted way of setting the scope for the callback?



-----------------------------

This is what I have done (roughly) in the past to accomplish the same thing:
-----------------------------
//common
var CON = YAHOO.util.Conn ect;
var EVENT = YAHOO.util.Event;
var DOM = YAHOO.util.Dom;
function logit(str) {
    var LOG = document.getElementById('log');
    LOG.innerHTML += str+"<BR>";
}

//application
(function(){

var testobj = {
    variableName : "INIT",
    init : function(){
        testobj.dump();
        testobj.doCallback();
    },
    dump : function() {
        logit(testobj.variableName);
    },
    doCallback : function() {
        var callback = {
            success : testobj.callbackSuccess,
            failure : testobj.callbackFailure
        };
        CON.asyncRequest('GET','http://callbackurl',callback);
    },
    callbackSuccess : function(r){
        testobj.variableName = "YES";
        testobj.dump();
    },
    callbackFailure : function(r){
        testobj.variableName = "NO";
        testobj.dump();
    }
};

EVENT.onDOMReady(testobj.init, testobj, true);

}());

-----------------------------


--- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
>
> Two things, the one you are asking for is that while you are properly
> setting the scope for the init function, you are not doing so for the
> callback to the asyncRequest call.  Besides the success and failure
> settings in the callback object, you have to set the scope property to
> have that fixed as well.  The scope is set correctly when the callback
> is set "this.callbackSuccess" is found without a problem, but when the
> callback gets executed, the scope is 'window' and there is no
> 'window.callbackSuccess'.
>
> The other issue that JSLint would certainly report (it is a good idea to
> use it) is that your shortcut variables CON, EVENT and DOM will be in
> the global namespace, even while you took care to put them inside the
> anonymous function.  They are missing the "var" in front of them.  As
> they are, you are simply using those variables by assigning them
> values.  You are not declaring it, you are simply using them.  Anything
> you use that is not declared, gets implicitly declared in the global scope.
>
> Since this doesn't seem to be a library which should have a publicly
> accessible reference to it, and you already have it all enclosed in an
> anonymous function, I wonder why would you care to declare a namespace
> and bother with scoping and such, it can all be contained within the
> anonymous function without 'this' and that.
>
> Satyam
>

No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.7.5/1697 - Release Date: 29/09/2008 7:40

#38551 From: "aniad" <aniad@...>
Date: Wed Oct 1, 2008 7:51 pm
Subject: Re: Invalid argument error at line 7, in IE, when switching between IE's tabs.
aniad
Send Email Send Email
 
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_RETRY\
S:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OV\
ERRIDE: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:funct\
ion(){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
> >
> >
> >
>

#38552 From: "Bradley Austin Davis" <bdavis@...>
Date: Wed Oct 1, 2008 8:31 pm
Subject: multiple loaders and order of operations...
jherico
Send Email Send Email
 
I'm attempting to use the YUI loader in my JSP based application.
Different pages have different needs, so I typically put a YUI loader
wherever I need a given set of functionality.  Now I want to put a
global loader in one of the early jsp includes and have its onSuccess
function set up a number of things for use by the other pages.

My problem is that contrary to my expectations, the YUI loaders
execute their onSuccess functions in order of level of dependency and
then in order of declaration.  For instance if I want loader B to
execute onSuccess after loader A, then B's dependency list must be
more complex than A's or it must be exactly as complex and declared
after A.

Once you start using the loader, you're kind of committed to doing all
your init stuff in onSuccess functions and having such non-obvious
rules for the order doesn't help at all.  It would be nice if there
was an order attribute you could put into the config for a loader to
determine the order of its onSuccess relative to other loaders.

#38553 From: georgiann puckett <gpuckett@...>
Date: Wed Oct 1, 2008 8:32 pm
Subject: Announcing YUI 2.6.0
george.puckett
Send Email Send Email
 

The YUI team is pleased to announce that YUI 2.6.0 is now available for download.

There a great many changes included in this release.

The YUI library has grown to include two new components.
    • Carousel
    • Paginator (functionality previously released in DataTable but spun out for standalone use)

Several components have also graduated from Beta to GA status.
    • Cookie
    • DataTable
    • DataSource
    • Layout Manager
    • Rich Text Editor
    • Resize
    • Profiler

This release also includes many bug fixes and enhancements throughout many of the components.  A few highlights include:
DataTable: This release includes enhancements to inline cell editing, fixed scrolling, pagination and sorting of dynamically driven DataTables.
Editor: Support has been added for Undo/Redo along with updates to indent/outdent processing, text attribute handling, toolbar button support.
TreeView:  The TreeView component has received a significant update that includes support for keyboard navigation, delegated event listeners, tree serialization/deserialization and other new features.  Many of the updates to this components in this release mark one of YUI's first development efforts with an external contributor, Satyam, who many of you will recognize from his numerous posts to this list.  Thank you, Satyam!
Uploader: The YUI Uploader has been revised in order to be compatible with the security changes introduced with Flash 10.
Accessibility:  Accessibility enhancements have been added to Carousel, Button, Menu, TabView, and Container.
Bug Fixes:  We've addressed a significant number of bugs across a number of components in the 2.6.0 release.  This includes more than 280 Source Forge items filed by members of the community.  A summary list has been attached to this email.  Thanks to all for taking the time to provide us with your feedback, sample code to reproduce problems, and patch proposals.

Please refer to the README files included with the components that you use in your development for the full details of the changes and bug fixes that were made, or to the README digest attached for a summary of all of the 2.6.0 changes.

Thanks again to all of you who have been an active participant in the YUI community by posting to the developer forum or adding content to our Source Forge repositories.  It is your feedback that has helped the library to evolve to what we have today in YUI 2.6.0.  We look forward to your continued support in the future. YDN-javascript@yahoogroups.com is the preferred forum for general comments and questions.  If you find a bug, please log the details along with a page link or sample code in the YUI bug tracker on Source Forge

Best regards,
george puckett
on behalf of the YUI development team: Adam Moore, Dav Glass, Eric Miraglia, Jenny Han Donnelly, Luke Smith, Matt Sweeney, Nate Koechley, Satyen Desai, Thomas Sha, and Todd Kloots; and contributers: Dwight "Tripp" Bridges, Julien Lecomte, Matt Mlinac, Allen Rabinovich,  Satyam,  Gopal Venkatesan, and Nicholas C. Zakas

Source Forge Bugs Fixed in YUI 2.6.0
Source Forge ID Summary Submitted By
1997225 [#2010814] DS_JSFunction not working on IE7 adelinor
1985549 [#1984385] Char [or] (and othe) in cookie name make problems adrenalin_
1835948 [#1699251] Item Select Race Condition (2) alexlitvak
1825683 [#1646090] Radio inline edit values alonsabi
1919886 [#1822516] Invalid object detection altearius
1937150 [#1864076] Subsequent calls to insert() don't process config altearius
1946874 [#1886339] Double clicking in editor sets "editorDirty" false altearius
1961290 [#1972411] Conflict w/prototype.js 1.6.2.0 aniabania
1989277 [#1992468] Effects don't work when assigned to a Module ara_p
1894425 [#1776202] underline not working properly in YUI editor aswattha
2118598 YUI Chart does not work in iframe atomicron
1921958 [#1826435] typo in grids.css, also in aggregate css bangpound
1874248 [#1874248] Charts Locks Up Safari bdoms
1948184 [#1886406] Sorting Column w/Width - Table Render Incorrectly bdoms
1850433 [#1697963] DataTable generates some XHTML incompatible tags berov
2003080 [#2030229] Various widths affect toolbar layout bigolslabomeat
1968056 [#1949958] default xy returns NaN in IE breaking bg position bigwebguy
2015601 [#2065013] Text in some controls is not vertically centered bkinsey
2026296 [#2093275] Auto Adjusting height bug in IE bkinsey
2034544 [#2118723] Image Options Dialog Box needs fixing bkinsey
1862316 [#1697926] Inline Cell Editor doesn't scroll with DataTable bltcoder
2114562 [#2220166] Correct display of default disabled button bltcoder
1978310 [#1985584] Typo on the cookie module main page bobprime
1992001 {#2000181] Extra comma in DataTable example bobprime
2037936 [#2120031] Safari/WebKit: Textfield does not blur correctly. bogojoker
2049065 [#2146339] Excessive calls to "_syncColWidths" scrollable DT brockgr
1972245 [#1964538] tabview's background is lost when using floats bsw114
1992681 [#2000257] Thumb misses tick marks on redraw (bug) carltongibson
1977911 [#1984915] DataTable column width errors with TabView Tab's ccurran
1986884 [#1984692] Form w/input element named "action" fails in IE cedricsam
1905036 [#1791651] Sub-menu hiding in IE7 chadkeller
2035187 [#2118761] Custom Editor body CSS only applies visited links circusbred
2007223 [#2038863] Cookie Hash parses incorrectly from empty cookie cjohngriego
1931768 [#1851344] Relative links auto convert to absolute links. coolkiwibloke
1927265 [#1837812] Layout needs destroy clean-up method coryb891
2015308 [#2065007] Missing code in Context Menu/TreeView example coryb891
1876913 [#1778826] contextmenu submenus fail when recreated crimp
2078104 [#2207188] Editor doesnt render if element not passed by ID ctrl0l
2078528 Editor window does not hide after invoking destroy() ctrl0l
1900884 [#1770548] DataTable columns not autosizing in IE curran_chris
2033644 [#2110391] Dup entries in whitelist cause unexpected output dancingduck
2049147 [#2146335] activeIndex incorrect/beforeActiveTabChange block davesickmiller
1963852 [#1939622] No beforeActiveIndexChange&activeIndexChange event deer421
1761410 [#1389445] formatCheckbox and editCheckbox are not consistent devasatyam
1786952 [#1457868] onEventSaveCellEditor devasatyam
1816904 [#1560973] editorOptions.disableBtns devasatyam
1896275 [#1777768] editorUpdateEvent not documented devasatyam
1904564 [#1781895] _oDefinition is useless devasatyam
1904569 [#1781900] dropdownChangeEvent not documented devasatyam
1904574 [#1791689] Listento Enter when editorOptions.disabledBtns set devasatyam
1904579 [#2109471] Provide async save cell confirmation hook up devasatyam
1916486 [#1815429] initializeTable has lost its argument devasatyam
1923237 [#1827334] generateRequest does not receive sorting info devasatyam
1924416 [#1828069] getColumn fails if columns where dragged around devasatyam
1957871 [#1918240] initialRequest should default to "", not null devasatyam
1960344 [#1925961] Filter property does not apply to fullpath devasatyam
2124988 [#2234303] Wrong call superclass constructor for cell editors devasatyam
1828709 [#1599106] Documentation and Variable: Scope dhtmlkitchen
1900019 [#1767385] Color Picker Core CSS Filename dlew22
1933808 [#1855227] submenualignment Applies to All Children dlew22
2085853 [#2184324] Number format: extra thousands separator in neg #s dmwallace
1820786 [#1692354] split: Needs separate hover event for menu button. docwhat
1958940 [#1917915] autocomplete: No way to get DOM elements? docwhat
1964037 [#1939612] title says "click to sort ascending" regardless docwhat
1967263 [#1951387] No indication that sorting is "working" docwhat
1970633 [#1971863] Autocomplete: quick backspace messes up results. docwhat
1986914 [#1984740] AC: responseSuccess doesn't catch parse errors. docwhat
2021359 [#2092598] IE7: dbl click image doesn't show settings dialog dominykas
1944393 [#1879508] DataTable skin example shows wrong source dschultz1
1906684 [#1791683] Width is incorrect if no rows exists dsdart
1908201 [#1791703] line appears around cell when selected w/ctrl key dsdart
1909726 [#1985595] TypeError if no headers dsdart
1914510 [#1812047] added row not sorted correctly dsdart
1924774 [#1839279] sorted column loses indicator after reorder dsdart
1934723 [#1858462] cursor set to col-resize doesn't resize dsdart
1944209 [#1879535] dblclick never called on header dsdart
2013172 [#2064930] focusDefaultButton does not work eharmic
1934789 [#1858551] DT InlineCellEditor Textbox returns invalid data elkner
1939809 [#1875537] RFE: datatable:checkbox uncommon behavior elkner
2021335 [#2086419] xml metafields not parsed enzosaba2
2008309 [#2040468] 'Click to Sort' label cannot be overridden ernie_turner
1957221 [#1918223] setBody() deletes a SimpleDialog's icon (w/patch) exaton
2041502 [#2146366] CalendarGroup.clear sets both calendars same month fastfinger
1926920 [#1839235] padding applied twice to content iftoggle animated fgalassi
1743402 [#1495057] Index of selected value in itemSelectEvent result fjanon
1793159 [#1514778] requestMethod has only GET garakkio
1886727 [#1779562] addListener check element id before element itself gauthierm
1908228 [#1791642] monitorresize:false doesnt apply created submenus gauthierm
1909000 [#1985622] Resize monitor iframe accessibility patch gauthierm
2049231 [#2146334] multiwindow-ajax (obj.constructor != Object) gbgbgb50
1946017 [#1886390] Unable to delete text when editor opens (Firefox) gjslick
1916771 [#1824117] Color mask not loading in IE with sam skin glimps
1954095 [#1972427] Bulleting grom_3
2012899 [#2064924] DT Style set to width:0px when parent is ... gschmick
2018053 [#2072672] TreeView.destroy() not implemented gschmick
2049796 [#2146321] getColumn() returns null after any column removed gschmick
1958273 [#1915224] Missing dependencies for "uploader" hasenstein
1959074 [#1917858] Uploader examples are incomplete/wrong hasenstein
1862109 [#1697939] Textbox editor with no buttons appears offset henners8000
1862297 [#1697934] editTextbox: update cell editor value on key down henners8000
2059693 [#2156112] collapse property doesn't work properly w/o header hiedenm
1841137 [#1697974] check typebeforecalling toLowerCase on _sResultKey hosermage
1967819 [#1951369] Chart Erased on div swap. itbeings
1901748 [#1771309] event position in labelClick event handler jablko
1934829 [#1858480] selectedMenuItem not initialized jablko
1934936 [#1858473] submenu item missing from form data jablko
2039777 [#2138602] Safari 2.0.3 - preventDefault not working jadence
1899061 [#1764552] TimeAxis with LabelFunction goes crazy jbergamin
1770929 [#1415815] 12,000+ Character Performance Issue jbueza
1958336 [#1918245] RecordSet.setRecords() doesnt fire recordsSetEvent jec_gatekeeper
1951995 [#1908156] Resize panel autocenters scrolling bd content(Saf) jeffmorris
1922190 [#1985597] hidden columns characters bleeding through jeffreybell
1755879 [#1404559] JSON parseResponse should work with empty 1st arg jimmysoho
1873408 [#1778976] Couldn't tab onto buttons of modal dialog jingceawlin
1883221 [#1729688] isAncestor is inconsistent jingceawlin
1835381 [#1637371] Drag constraints should limit the whole object joeflash
1993048 [#2000116] YAHOO.util.Easing is undefined (w/o Animation) jolind
1937118 [#1864145] Skin missing for slider control jstrater
1912426 [#1810557] (isDefault+disabled) appearance changed only in IE k2crow
2003225 [#2035831] FF 3 error when null passed to getElementById ke1g
2004613 [#2035846] FIX for "'oRequest' is null or not an object" keithhackworth
2032807 [#2107975] Menu.clearContent fails with groups kpdecker
1593366 [#1495781] YAHOO.widget.DS_XHR.prototype.doQuery kranz
1761919 [#1391567] The textboxFocusEvent is not always fired ktomov
2021549 [#1791683] Poor DataTable rendering kube12
2021781 [#2086378] IE7 - DataTable too wide when rows are added kube12
2033946 [#2119033] Empty DataTable rows are compressed vertically kube12
1986184 [#1984734] error on _formButtonClicked log message kwek
1872843 [#1699297] Beep on submitting a Form in IE with Enter l_jakobsmeier
1827088 [#1697896] Autocomplete case-sensitive w/ special characters luredan
1810703 [#1544527] "undefined" flashes in textbox on select from list m56
2022402 [#2086366] OverlayManager.find returns undefined, expect null mamihod
1926238 [#1839296] Editor adds extra </li> tag at the end of a list markustripp
2023964 Pie Chart polling hides chart on refresh martinp2812
1530483 [#150190] Performance loss when set[XY]Constraint w/ticks use mderk
1939101 [#1875554] Autocomplete loses onfocus event mikeprince001
1899145 [#1764652] constraintoviewport not enforced- Resize operation mingfai
1995006 [#2010852] Datatable height shall include the head row mingfai
1995892 [#2006122] set('disabled',false) cause IE6 error [with patch] mingfai
1997136 [#2010817] Problems with the Grid Layout example mingfai
1943654 [#1879527] inline cell edits ignored when only mouse is used mjy
1927599 [#1985617] Incorrect gutter width in Firefox in 25/25/50 row msheakoski
2042997 [#2146369] datatable cell edit and draggable columns msimpetru
1909677 [#1985593] Autocomplete submits form bug ? namnam79
2001033 [#2019208] YAHOO.widget.Column getParent( ) always ret null nashtm
2002661 [#2030285] hidden columns have incorrect width when shown nashtm
2032543 [#2108029] IE7: Error generated if window resized very small nashtm
1925205 [#1831660] Searching for a nonexistent node ID crashes nesetril
1934742 [#1855153] Infinite loop in _sort method nfrias
1964962 [#1939547] Ret false from DD.onMouseDown() doesn'tcancel drag nonsensery
1774640 [#1424486] IFRAME containerHelper displays "false" noxhoej
1774642 [#1424477] _populateList() slow if maxResultsDisplayed large noxhoej
1774646 [#1424494] IFRAME containerHelper initially visible in Opera noxhoej
1774667 [#583531] Default actions on keypresses not suppressed:Opera noxhoej
2077747 Simple editor losing its format when font color changes pandugadu
2068263 [#2207187] Re-assigning the url of a link results in error papiya
2122507 [#2234328] Selector.query attribute selectors broken patspam
1830504 [#1699208] Two private source variables in LogWriter paulofallon
2028150 [#2169817] Column hover: "Click to sort ascending" too often paulrhanson
1964055 [#1939616] mouseup during resize of layout unit over iframe plekky
2093253 [#2189912] Editor in HTTPS page causes Security Warning pmouawad
2082704 [#2178765] DT can't insertColumn from existing Column obj preaction
1902742 [#1775078] Cannot disable DataTable rabbitwolf
1987265 [#1985566] 2.5.2 added 2 extra pixels to the width of a table rabbitwolf
1927340 [#1844247] Not it is correct is executed to GET the request. raboserg
1962938 [#1939569] CSS overflow change resets chart ranbena
1978350 [#1972367] Safari 3.1 issue with lists rob-ballou
1978372 [#1972354] Safari/IE list creation quirk rob-ballou
2001587 [#2023032] Bug in Example: One Editor, Multiple Edit Areas robertpranschke
1983261 [#1975335] DataTable, DragDrop & Window Resize royfox
2007145 [#2036613] Removing underline not working in IE6/7, FF3 rubikzube
1724500 [#1243103] Unexpected behavior in queryMatchSubset ryounes
1724509 [#1495222] finer-grained control queryMatchSubset results ryounes
2008003 [#2038933] Uploader doesn't open window using Flash 10 beta salamanders
2018302 [#2072677] postData is handled inconsistently sambayer
2018894 [#2072679] Menu.focus ovewritten by overlay manager sambayer
1579070 [#1495786] DS_XHR support \\\'POST\\\' (patch included scc
2020736 [#2086459] openWindow uses variable w/o local declaration sergiocarvalho
2060556 [#2156128] stack one column data below 2-col grid if nested sergiou
2044755 [#2138240] whole table image is shifted on cell update sflitman
1991626 [#2000203] Missing documentation for Calendar config slieschke
1996536 [#2009159] Calendar breaks when "cell" appears in the ID snoopykiwi
1946051 [#1886368] Tab to Focus then Mouse Click to Select Fails srastin
2058387 [#2152441] Missing font doesn't degrade correctly in FF3 steve_woodcock
1672705 [#1081441] _moveSelection calc off on Mozilla/Opera stevechu
1676063 [#1495326] Ability to add className to DataTable suntoast
2027048 [#2099035] keyDown doesn't fire in IE after enabling editor tbeattie
1498696 [#1501873] DragDrop pattern not quite optimal testeranimal
1820384 [#1561345] don't propagate w/onclick attribute of button thatswhatyouget
2021363 [#2086476] DataTable messages should be setable per instance thetaphi
1968072 [#1951380] insertColumn doesn't accept Column objects thisisjeffwong
1919826 [#1892984] Regex matches both <b> and <button> tob1
1923025 [#1827360] Tabview.set in silent mode still fires events tsvara
1994387 [#2166941] Customized radio button title overridden ttop
1994410 [#2030294] Inserting records at a specific index fails ttop
2042913 [#2131936] Errors in doc example ttop
1965185 [#1941168] custom events not removed on container destroy twoeckinger
1881451 [#1723155] Just text highlights for submenus that open left twohlers
1834304 [#1692363] menuItem stops working if 'disabled'=true onclick usercho
2027073 [#2108127] editor list items misaligned weplay
1925337 [#1839224] editor indent/outdent inconsistent behavior wmmsf
1780756 [#1424486] IFrame Shim z-index Needs to Be Explicitly Set wrumsby
1903653 [#1777729] Safari "Could not populate list" after collapse xopl
1954228 [#1908178] deleting 1+ button from buttonType:advanced fails yaundro
1964343 [#1939541] D&Dunload handler doesn't play fair with DataTable yaundro
1982038 [#1971673] IE and (potentially important) memory leak yaundro
2020779 [#2086450] endResize event not documented zett88
1964057 [#1939581] DataTable attempts to add invalid mouseup listener ziesemer
1964081 [#1939558] Dialog creates buttons w/o id's, logging warnings ziesemer
1774742 [#1424511] rowAddEvent strange behaviour... zmische
1896937 [#1764062] Button w Menu-dont allow manual Context Alignment zmische
1562856 [#1495799] <select> behaviour: entire dataset drop down nobody
1634757 [#1511120] AOP (Aspect Oriented Programming) nobody
1654061 [#1493537] edit TextNode nobody
1671404 [#1502053] DragDrop.onTargetIn/onTargetOut nobody
1689607 [#1495256] Allow up/down arrow-key navigation in textarea nobody
1752549 [#1420040] parseXMLData-nodeValue not always in firstChild nobody
1756698 [#1404551] DS_XHR.prototype.parseResponse - schema definition nobody
1773334 [#1419735] alignElWithMouse is inaptly named (wishlist/minor) nobody
1809340 [#1544279] label click action for button type=checkbox nobody
1832967 [#1699234] AutoComplete does not handle characters such as € nobody
1836512 [#1699258] Autocomplete Constructor/oConfig issue nobody
1840456 [#1699225] No TYPE_JSFUNCTION handler in handleResponse nobody
1850844 [#1692368] Submenu re-shown when menubar item is re-hovered nobody
1851177 [#1655240} Text Align not working correctly in IE nobody
1864619 [#1697902] editDropdown does not initialize_oCellEditor.value nobody
1869619 [#1842631] Image Modification Dialog nobody
1881784 [#1777850] DS doesn't pick value from JSON response w/array nobody
1884118 [#1729619] Modal dialog in complex page causes IE warning nobody
1899196 [#1765001] Firefox button Inconsistencies nobody
1903116 [#1776235] Not possible to colors rows nobody
1913526 [#1892996] delete all initial contained text nobody
1918879 [#1985623] oPaginator.getPageRecords() has no properties nobody
1922726 [#1827366] tabview Tab Configuration contentEL doc wrong nobody
1924127 [#1828063] YUI 2.5.0 autocomplete-min.js bug nobody
1925074 [#1839275] Row Selection nobody
1925551 [#1837810] Blank space after expanding LayoutUnit nobody
1927542 [#1839135] Tabview and Flash content with Firefox nobody
1927870 [#1844291] make removeClass remove _attribute_ class/classname nobody
1928426 [#1844215] filter_invalid_lists nobody
1932908 [#1858574] Bug in datatable when used inline cell editing nobody
1934867 [#1858486] Background click possiblew/backgroundEnabled=false nobody
1942531 [#1875452] Inserting the flash player fails nobody
1949313 [#1892963] fails to load in iframe on firefox nobody
1955931 [#191827] font color(background color) doesn't work properly nobody
1956586 [#1918222] Fontsize is not updating when nodechange in IE nobody
1966527 [#1951392] activeIndex returns null dynamically created tabs nobody
1969747 [#1971825] Autocomplete events (data*) and focus nobody
1969760 [#1964512] negative minQueryLength dont turn off autocomplete nobody
1975463 [#1964404] Editor.destroy() doesn't destroy editor windows nobody
1984790 [#1985588] Panel w/o width set has too small header in IE7 nobody
1985234 [#1984885] Dependency config unaware Menu depends on Logger nobody
1986667 [#1985574] sizeMask leaves horizontal scroll on window resize nobody
1986820 [#1984727] Clicking bullet list before typing creates empty <li> IE7 nobody
1988545 [#1987607] Safari doesn't accept multiple args console.log() nobody
1988968 [#1987616] initEvent does not fire when no rows are returned nobody
1996074 [#2006092] Indent changes the font to Arial nobody
1996079 [#2006110] Toolbar options are not enabled nobody
1997164 [#2166981] Wrong unit size after expand if animation is false nobody
1998136 [#2015932] Col width expands with paginator change & no data nobody
1998524 [#2015947] Alignment Code doesn't generate nobody
2001134 [#2023059] onDataReturnInitializeTable Bug nobody
2001890 [#2023106] Example page does not style correctly nobody
2002911 [#2030281] Problem with Paragraph styling in Firefox nobody
2003413 [#2030206] AC appears to be caching when maxCacheEntries=0 nobody
2007003 [#2036608] Different appearance of submit/link buttons nobody
2010552 [#2050919] menu button doesn't work with Opera nobody
2013380 [#2064939] Possible bug with Dom.getElementsByClassName nobody
2017784 [#2065848] Menu submenualignment: ["bl","bl"] IE7 nobody
2025092 [#2093325] IE7:allowNoEdit turned on period '.' don't work nobody
2027758 [#2099037] Ghost Button appears on IE6 on XP nobody
2034517 [#2119091] Bottom drifts on top drag in IE7/FF3 nobody
2036044 [#2119043] documentation of the method 'Element.get ' nobody
2047796 [#2138284] clearAllIntervals DS not clear previously set up nobody
2048035 [#2138168] autoHeight will cause misaligned dialog panels nobody
2063145 [#2158841] Inconsistent scrollbar behavior between browsers nobody
2063484 [#2158852] isAncestor could not work in Safari nobody
2076780 Menu Button returns null for getMenu() (YUI 2.6.0 PR1) nobody
2081251 [#2178852] inline cell edit example: highlighting does't work nobody
2083403 [#1697926] (w/scrollbar)-cell editing causes scrollbar reset nobody
2099844 [#2197088] DT formatter changes handling of HTML encoding nobody
2101988 [#2101988] Error In DataTable Documentation nobody
2117713 [#2236141] Opera submits form on enter-to-select suggestion nobody

YUI Release 2.6.0 README Digest

 

This document is a summary of the 2.6.0 update information that has been added to the respective

README files included within each component folder.  Please refer the README files for the

components you are using for a full change history of each component.

 

 

Animation

- Enhancements

- ColorAnim updated to use getAncestorBy

           

AutoComplete

- Enhancements

- AutoComplete has a new required dependency on YAHOO.util.DataSource,

  and the class YAHOO.widget.DataSource has been deprecated. As a result,

  the following YAHOO.widget.DataSource properties have been ported to

  YAHOO.widget.AutoComplete:

   - queryMatchCase

   - queryMatchContains

   - queryMatchSubset

- The following YAHOO.widget.DS_XHR properties have been deprecated in favor of

   the new customizeable YAHOO.widget.AutoComplete method generateRequest:

   - scriptQueryParam

   - scriptQueryAppend

- The YAHOO.widget.DS_XHR property responseStripAfter has been deprecated in favor

   of the new customizable YAHOO.util.DataSource method doBeforeParseData.

- Now always fires either dataReturnEvent or dataErrorEvent upon a DataSource

   response, whether container opens or not due to instance losing focus.

- Added textboxChangeEvent and containerPopulateEvent Custom Events.

- Implementers who have problems upgrading can set the property backwardCompatMode

   to true.

- As a convenience, the formatResult() method now receives a third parameter which

   is the query matching string for the result.

- Added new method filterResults() for an easily customizeable local string-

   matching algorithm.

- The dataRequestEvent now passes along the request as well as the query string.

- The style list-style:none has been set in the default CSS.

 

- Bug Fixes

- Mac FF no longer submits form on enter-to-select suggestion, nor tabs away from input

  element on tab-to-select when delimiter characters are enabled.

- In order to eliminate certain race conditions with the typeAhead feature, added

   typeAheadDelay of default 0.5.

 

 

Base

- No changes

           

 

Button

- Enhancements

- Added a new "menumaxheight" attribute used to set the "maxheight" configuration property of a  Button's Menu.

- Added a new "menuminscrollheight" attribute used to set the "minscrollheight" configuration property of a Button's Menu.

- Added a "menualignment" attribute attribute used to control how a Menu is aligned to its

  corresponding Button.

- Added a "yui-split-button-hoveroption" CSS class that is applied when the user hovers the mouse over the "option"

  section of a split button.

- Removed the rounded corners for IE 6 Quirks Mode and Strict Mode and IE 7 Quirks Mode.

- Changed the keyboard shortcut used to display the Menu for Button's of type "split" to the down arrow key.           

 

- Bug Fixes

- The "getMenu" method no longer returns null when the "menu" attribute is set to an array of  YAHOO.widget.MenuItem configuration properties.

- Buttons of type "menu" and "split" will automatically constrain the position of their menu to be inside the viewport

   boundaries if it is an instance of YAHOO.widget.Overlay.

- Clicking on the option region of a Button of "type" split will fire the "option" event, but not "mousedown," "mouseup,"

  "click," or "dblclick".

- Buttons of type "radio" and "checkbox" will not override a value provided for the title attribute.

- Returning false in an inline "submit" event handler for a form will now prevent the form

  from being submitted when the form contains Button instances.

- Pressing the enter key to submit a form containing Button instances will no longer

  trigger a beep sound in Internet Explorer.

- The Button widget no longer logs errors when strict error reporting is enabled in FireFox.

- Button instances are now automatically clicked when their corresponding <label> is clicked.

- The name and value of selected MenuItems in submenus of a Button's Menu are now part of their parent form's data when

   the form is submitted.

- For Button's of type "menu" and "split" created using an existing <SELECT> element: The name and value of the

  pre-selected MenuItem in a Button's Menu are now part of their parent form's data when the form is submitted.

- The "appendTo" event now correctly fires when the "container" attribute is set to a

  node reference.

- Simple forms with two fields: a Button of type "submit" and a text field will no longer

  be submitted twice when the enter key is pressed.

- Submitting a form by pressing the enter key will now result in a Button's "click" event

  handlers getting called.

- Buttons of type "menu" and "split" now consistently display their Menus in Opera.

- Button no longer logs a warning when a Button is created without an id.

 

 

Calendar

- Enhancements

- Added text to previous month, next month and close icons, to

  enhance accessibility for screen-readers.

- Added destroy method to Calendar/CalendarGroup

- Refactored code to reduce minified Kweight.

 

- Bug Fixes

- Fixed incorrect cell index parsing from cell id attribute, when

  Calendar id contained "cell".

- Fixed issue with bubbled previous month, next month click events

  missing target information in certain browsers (due to replaced HTML),

  by delaying click event handling through a setTimeout.

- Fixed incorrect clear method behavior for CalendarGroup where all

  pages would be set to the same month.

 

 

Carousel  ( **NEW**)

- New component introduced in 2.6.0.

 

 

Charts

- Enhancements

- refreshData is now a public method

- Added new optional altText attribute.

- Moved _initialized flag from Charts to FlashAdapter.

- Added support for marker labels on PieSeries. Default is percentage values. May be customized with

  labelFunction property.

- New Chart Types: StackedColumnChart and StackedBarChart.

- Fixed bug in which charts delivered in an iframe from a different domain failed to render in Firefox.

- contentReady event now fires after the dataSource is available. In some rare cases it may not be backwards

  compatible. If you need the event to fire earlier, you can revert back to the previous code. (see version 2.5.2)

 

- Bug Fixes

- Fixed bug in which an empty series definition caused charts to ignore styles.

- Fixed bug in which additions to Object.prototype cause SWFObject embed to fail

- Fixed bug in which TimeAxis bounds calculation fails when polling.

- Fixed bug in which changes in the dom (e.g. display property of chart) would cause the chart to erase.

   New known issue added. (see known issues section)

 

 

Color Picker

- Enhancements

- Added colorpicker-core.css (empty) for completeness

 

 

Connection

- Bug Fixes

- setForm optimization for select-one elements.

- File upload transactions that include encoded POST data will have the keys and values decoded before they are

  used to create the form fields, to avoid having the data encoded twice.

 

 

Container

- Enhancements

- 1px rounded corners in Sam-Skin, added in 2.3.0, are no longer rendered in IE6 or IE7.

  hasLayout and relative positioning applied to the header, body and footer elements to achieve the 1px

  rounded corners had functional side effects (such as the inability to shrink-wrap auto width containers,

  and the creation of invalid stacking contexts) 

  1px rounded corners can be re-applied with a CSS patch if required, as discussed on the container documentation

  web page.

- We now attempt to focus the first focusable element inside a Panel, when it is shown (as is done with Dialog). 

- Setting the "height" configuration property will now result in the container's body element being resized to fill

  out any empty vertical space. This behavior can be configured using the "autofillheight" configuration property

  discussed below.

- Added a new "preventcontextoverlap" configuration property used to manage whether or not an Overlay instance

   should overlap its context element (defined using the "context" configuration property) when the "constraintoviewport"

   configuration property is set to "true".

- Added ability to specify event triggers when using the "context" configuration property. The container will re-align

   itself with the context element in response to these trigger events.  See context configuration property documentation

   for usage details.

- Added "autofillheight" configuration property, which is set to "body"  by default. This configuration property can 

   be used to specify which  of the 3 container element - "header", "body", "footer" should be  resized to fill out any

   remaining vertical space when the container's  "height" configuration property is set.  The property can be set to

   false/null to disable the feature if desired. 

- Panel now supports focusFirst and focusLast methods, as well as tab, shift-tab looping when modal

  (similar to Dialog).

 

- Bug Fixes

- Fixed issue with tooltip iframe remaining visible in situations where the page was scrolled down.

- Fixed OverlayManager.find to return null, if the Overlay cannot be found.

- OverlayManager no longer overwrites focus or blur methods on the registered container, if they already

  exist (e.g. for Menu). Instead  it registers focus/blur event listeners to maintain OverlayManager

  state in such situations.

- Panels/Dialogs without a fixed width specified (auto width containers) now shrink-wrap correctly in

   IE6, IE7 (see 1px rounded corner discussion above)

- Added text to the close icon, to enhance accessibility for screen readers. Also changed the close icon element

   from a span, to an anchor to facilate keyboard tab access.

- Added title to text resize monitor iframe, to assist screen readers.

- Fixed modal mask resizing when going from a larger to a smaller window size.

- hideMaskEvent is now fired after all modal mask relatd state changes (including changes to the document.body)

   have taken place. Originally it was fired before removing the "masked" class from document.body.

- Fixed Sam Skin look/feel for default Dialog buttons. Originally disabled default buttons looked the same

   as enabled default buttons.

- Fixed asynchronous Dialog submission failure for cases where the form contained elements named

   "action" or "method".

- Fixed Dialog button focus methods when using YUI Buttons.

- Modal Dialogs buttons are now included in the tab, shift-tab flow. Originally buttons in Modal dialogs were

   unreachable when tabbing.

- Individual focus handlers attached to all non-container focusable elements (used to enforce modality), resulted

   in poor performance when showing/hiding modal Panels, especially in IE, on pages with a large number of

   focusable elements.  Instead of individual listeners, Panel now registers a single focus listener on the document

   to enforce modality, improving performance and scalability for modal solutions.

- Files for optional component dependencies (e.g. animation, dragdrop, connection) can now be included after

   container's js files, without  breaking related functionality.

- Fixed Config to remove (null out) current entry from the config queue, before invoking fireEvent for the entry, to

  keep it from being re-added to the end of the queue if listeners were to set a property which superceded the entry.

 

 

Cookie Utility  (promoted from Beta to GA)

- Enhancements

- Implemented removeSub() method.

 

- Bug Fixes

- Fixed parsing error when cookie name has special characters in it (SF 1985549).

- Fixed parsing issue when cookie string was empty (SF 2007223).

 

 

Data Source  (promoted from Beta to GA)

- The DataSource class has been refactored into a DataSourceBase base class and

   the subclasses LocalDataSource, FunctionDataSource, XHRDataSource, and

   ScriptNodeDataSource. While backward compatibility of the YAHOO.util.DataSource

   constructor has been maintained, implementers should be aware that calling

   <code>new YAHOO.util.DataSource()</code> now actually returns one of these

   subclasses. Implementers can alternatively call a subclass constructor directly.

   The DataSource constructor returns one of the subclasses based on the oLiveData

   passed to it, or the dataType config value. This class-based architecture no

   longer meaningfully supports swapping data types on the fly.

- Empty responses of TYPE_FLAT no longer return empty string results.

- Parsing of totalRecords is no longer supported as a top-leval schema value.

   Implementers should access this value of using a metaField.

- XML parsing has been updated for support of CDATA sections and long text values

   split into multiple nodes.

- Now passing oCallback object to doBeforeCallback() and doBeforeParseData() methods.

- YAHOO.util.Date now supports strftime formatting.

 

 

Data Table (promoted from Beta to GA)

- Enhancements

- Created new subclass ScrollingDataTable. Created new classes CellEditor, BaseCellEditor, and

   associated subclasses. As a result, the following API changes have been made:

- DataTable.editCheckbox is no longer supported. The CheckboxCellEditor class should be used instead.

- DataTable.editDate is no longer supported. The DateCellEditor class should be used instead.

- DataTable.editDropdown is no longer supported. The DropdownCellEditor class should be used instead.

- DataTable.editRadio is no longer supported. The RadioCellEditor class should be used instead.

- DataTable.editTextarea is no longer supported. The TextareaCellEditor class should be used instead.

- DataTable.editTextbox is no longer supported. The TextboxCellEditor class should be used instead.

- editorUpdateEvent is no longer supported.

- showCellEditorBtns() is no longer supported. The CellEditor method renderBtns() should be used instead.

- resetCellEditor() renamed to destroyCellEditor().

- Values for checkboxOptions, dropdownOptions, and radioOptions must be either a

   simple Array or an array of object literals with properties "value" and "label".

- A new CellEditor property asyncSubmitter can be used to submit input values and will block the DataTable

  UI (via new DataTable methods disable() and undisable()) until the callback function is executed to finish

  the transaction.

- The CellEditor's "Save" and "Cancel" buttons now have configurable labels.

- CellEditor validator functions, including the built-in function YAHOO.widget.DataTable.validateNumber

   must return undefined for invalid values.

- Pagination and sorting have been reworked to better support dynamically driven DataTables. As a result, the

   important changes have been made:

- Removed support for "magic meta" fields

- The following APIs have been removed:

        - "paginationEventHandler" Attribute

        - handleSimplePagination()

        - handleDataSourcePagination()       

        - updatePaginator()

        - showPage()

        - formatPaginator()

        - formatPaginationDropdown()

        - formatPaginatorLinks()

- The following APIs have been added:

     - "dynamicData" Attribute

- The following APIs have been changed:

     - onPaginatorChange() has been renamed to onPaginatorChangeRequest()

 - Removed backward compatibility support for the "paginated" Attribute and the object literal "paginator"

   Attribute value. Implementers must use the Paginator class to populate the "paginator" Attribute.

- The following APIs have been changed from static class properties to instance Attributes, to be set via the initial

  config or myDataTable.set():

    - MSG_EMPTY

    - MSG_ERROR

    - MSG_LOADING

    - COLOR_COLUMNFILLER (ScrollingDataTable)

- The formatTheadCell() method been changed from static a static method to an instance method with an update to

   its argument signature.

- The initEvent will fire when rows are rendered from an initialized state,  and the renderEvent will always

   fire when rows are rendered, and also when the  underlying DOM incrementally changes (such as incrementally

   adding or deleting rows or Columns). This is a change from prior behavior, when the the renderEvent would *not*

   fire if the initEvent was fired and only when the entire view was rendered (such as a new page). There is now a new postRenderEvent which fires after the renderEvent, once the post-render cleanup routine has executed (i.e., Column

   width validations).

- For consistency with other doBefore abstract methods, doBeforeShowCellEditor() returns true by default, and

   returns false to cancel showing the cell editor.

- Added the following APIs

   - configs property

   - getBdTableEl() method (ScrollingDataTable only)

   - getHdContainerEl() method (ScrollingDataTable only)

   - getHdTableEl() method (ScrollingDataTable only)

   - updateCell() method

   - currencyOptions, dateOptions, and numberOptions Attributes for default formatting

- Column changes:

   - minWidth default value now null.

   - Added Column.maxAutoWidth property

   - Removed unused Column._oDefinition private property.

   - Hidden Columns are now manifested as cell liner elements with display:none to prevent content from being

   visible.

- Resizeable Columns now create an additional resizer liner DIV element between the TH element and the liner

   DIV element.  Implementers are advised to access the liner DIV elements via Column.getThLinerEl() rather

   than TH.firstChild.

- currencyOptions, dateOptions, and numberOptions properties for robust per-Column formatting

- Added bottom border to last TR element in ScrollingDataTables.

- paginator attribute can be set to null to remove pagination.

- Paginator extracted to standalone class and optional dependency.

- The default CSS styles for captions have been updated.

 

- Bug Fixes

- In the markup, the primary data TBODY is (once again) before the message TBODY element.

- TR element IDs are now assigned with the corresponding Record ID.

- Removed unused TD ID assignments.

- All CSS classes representing Column states now assigned directly on TH and TD elements, not on liner DIV

   elements.

- addRows(data, index) now inserts rows in the correct order

- initializeTable now resets Paginator's totalRecords

- default cell formatting broken out into Formatter collection method

 

 

Dom

- Bug Fixes

- now rounding getXY return for clientRect branch

- now trimming className arg in getElementsByClassName

- class attribute now removed if empty after removeClass

- normalized isAncestor (needle === haystack no longer returns true in some browsers)

 

 

Drag and Drop 

- Enhancements

- Added useShim flag to DragDropMgr to place a shim over the page during a drag operation.  It must be set by

   hand to be backward compatible. This will allow a draggable element to pass over things like an IFRAME without

   interrupting the drag movement.

            YAHOO.util.DDM.useShim = true;

 

- Bug Fixes

- Fixed issue with loop when mouseup occured outside of an iframe in Internet Explorer

 

 

Editor  (promoted from Beta to GA)

- Bug Fixes

-Firefox

- rich text formatting (italize) lost when color is sele...

- [SF 1946017] Unable to delete text when editor opens (Fi...

- [SF 2002911] Problem with Header styling in Firefox

- [SF 1899196] Firefox button Inconsistencies

 

- Internet Explorer

- [SF 1869619] Image Modification Dialog

- [SF 1995892] set('disabled',false) cause IE6 error [with...

- [SF 2021359] IE7: double clicking image does not bring u...

- [SF 2026296] Auto Adjusting height bug in IE

- [SF 2025092] IE7 - allowNoEdit turned on period ('.') do...

- [SF 2027048] keyDown event does not fire in IE after ena...

- [SF 2093253] Editor used in HTTPS page will provoke Secu...

- [SF 1851177] Text Align not working correctly in IE

- [SF 1986820] Clicking bulleted list before typing create...

- [SF 2027073] IE7: editor list items misaligned when text...

- [SF 1956586] Fontsize is not updating when nodechange in IE

 

- Safari

- [SF 1978372] Safari/IE list creation quirk

- [SF 1978350] Safari 3.1 issue with lists

 

- All

- [SF 1791252, 1964709] Have Undo, Redo functions in Editor 

- [SF 1926238] Rich Text Editor adds extra </li> tag at th...

- [SF 1928426] filter_invalid_lists

- [SF 1923255] Give descriptive error when editor containe...

- [SF 1931768] Relative links automatically converted to a...

- Add a strikethrough/blockquote buttons for the Rich Text ...

- [SF 1946874] Double clicking in the editor sets "editorD...

- [SF 1919826] Regex matches both <b> and <button>

- Rich Text Editor - Link menu's url encoding "&" to "&amp"  

- [SF 1954228] Deleting 1+ button from "buttonType : advan...

- html encoded characters are unencoded

- [SF 1975463] Editor.destroy() doesn't destroy editor win...

- [SF 1986184] error on _formButtonClicked log message

- [SF 2003080] Various widths affect toolbar layout

- [SF 2048035] autoHeight will cause dialog panels to be m...

- [SF 2065060] Tab and shift-tab should move focus from th...

- [SF 2077747] Simple editor losing its format when font c...

- [SF 1998524] Alignment Code doesn't generate

- [SF 2035187] Custom Editor body CSS only applies to visited links

- [SF 2034544] Image Options Dialog Box needs fixing

- [SF 2007145] Removing underline not working in IE6/7, FF3

- [SF 2015601] Text in some controls is not vertically centered

- [SF 1955931] font color (background color) doesn't work ...

- [SF 1954095] Bulleting

- [SF 1925337] editor indent/outdent inconsistent behavior

- [SF 1996074] Indent changes the font to Arial

- Handle Submit Failing

 

 

Element

- Enhancements

- Passing return values from DOM methods (appendChild, insertBefore, etc)

 

 

Event

- Enhancements

- Legacy event check for Webkit increased to capture Safari 2.0.3.

- Added add/removeFocusListener, add/removeBlurListener

 

 

Fonts

- Enhancements

- Added font reduction and face restatement for select, input, button, and textarea

-  Comments and formatting updates.

-  KNOWN ISSUE:

     In IE8 Beta 2, user-initiated Text Size adjustment does not work because our keyword

     filters to IE do not reach IE8. Note that Zoom works, providing users a resize option.

 

 

Get

- Enhancements

- Added timeout support

 

- Bug Fixes

- Fixed IE memory leak

 

 

Grids

- Bug Fixes

- Removed extraneous "s" typo per SF #1921958

-  Added .yui-g .yui-u .yui-g {width:100%;} so nested grids work more consistently; SF:2060556

-  Added provision for better g>g>u gutters per SF:1927599

 

 

History Manager

- No changes

 

 

ImageCropper

- Bug Fixes            

- Reset fails to reset Constraints

 

 

Image Loader

- No changes

 

 

JSON

- Enhancements

- Security updates

-  Architecture change to make lang.JSON object more durable

-  stringify whitelist keys scrubbed for duplicates

-  Object keys sorted in stringify

 

 

Layout Manager    (promoted from Beta to GA)

- Enhancements:

-  Added support for the new useShim config on Resize objects

-  Added support (via Caridy) for ajax content retrieval

-  Promoted to GA Status - beta flag removed from files.

 

- Bug fixes

- [SF 1961290 ] Conflict w/prototype.js 1.6.2.0

- [SF 2059693 ] collapse property doesn't work properly without header

- [SF 1997164 ] Wrong unit size after expand if animation is false

- [SF 1925551] Blank space after expanding LayoutUnit

- [SF 1927265 ] Layout needs destroy clean-up method

- [SF 1964055 ] mouseup during resize of layout unit on top of an iframe

-  Remove over use of overflow hidden

 

 

Logger

- Bug fixes

- LogWriter source member typo fix

- LogReader pause(), resume() work when footerEnabled = false

- Console logging in Safari now receives full message

- Invalid markup in VERBOSE_TEMPLATE corrected, space re-added after category

- Corrected problem where messages containing { content } were getting destroyed

 

 

Menu

- Enhancements

- Added a "keepopen" configuration property to YAHOO.widget.Menu that, when set to "true", will

  result in a Menu remaining open when clicked.

- Popup Menus now automatically focus themselves when made visible, and when hidden, restore focus

  to the element in the DOM that had focus prior to them being made visible.

- Added a new "submenutoggleregion" configuration property to YAHOO.widget.MenuBar.  When set to

  "true", only clicking a specific region of a MenuBarItem will toggle the display of a submenu. 

  The width of the toggle region is defined

  by YAHOO.widget.MenuBar.prototype.SUBMENU_TOGGLE_REGION_WIDTH.

- Added a new "preventcontextoverlap" configuration property that is used to manage whether or not

  a submenu should overlap its parent MenuItem when the "constraintoviewport" configuration

  property is set to "true".

- Added a new "shadow" configuration property.  The "shadow" configuration property should be

  set via the constructor and cannot be changed.  Previously a Menu's shadow was created via the

  public "onRender" method.  This method has been removed.

- The "url" configuration property for MenuItem instances with a submenu will now be set to

  "#[submenu_id]" if the "url" property is not otherwise specified by the user.

- Dynamically positioned submenus now have a default z-index of 1, rather than one greater than

  the z-index of their parent Menu.

 

- Bug fixes

- Submenus no longer appear in the top-left corner of the viewport before moving into position when

  initially made visible.

- Submenus are no longer re-shown when the mouse moves from a submenu back to its parent MenuItem.

- A Menu's shadow is now rendered at the correct dimensions consistently in Internet Explorer.

- Menus no longer trigger a JavaScript error if the "constraintoviewport" configuration property

  is set to "true", but the "context" configuration property is not set.

- Setting the "submenualignment" configuration property for a MenuBar instance will no longer

  result in the value being automatically propagated across all submenus.

- Setting a MenuItem instance's "disabled" configuration property to "true" inside the scope of

  a "click" event listener registered via the "onclick" configuration property will no longer

  prevent the "click" event of its parent Menu instance from firing.

- MenuItem instances of submenus that open to the left of their parent MenuItem will now

  highlight in response to the "mouseover" event in Firefox 2.

- The Menu library no longer logs errors when strict error reporting is enabled in FireFox.

- Submenus will no longer hide in IE 7 when moving the mouse from an item in a MenuBar to

  its corresponding submenu.

- MenuItem instances placed in groups are now properly removed and destroyed when the

  "clearContent" method of their parent Menu instance is called.

- The "monitorresize" configuration property now propagates to submenus.

- Updated the "maxheight" configuration property so that it will only scroll the body of a Menu if

  its content is composed of MenuItem instances.

- Updated the implementation of Menu's "constraintoviewport" configuration property so that

  submenus will automatically scroll and reposition themselves to remain inside the boundaries of

  the viewport regardless of the default value supplied to the "submenualignment"

  configuration property.

 

 

Paginator  ( **NEW**)

- New component introduced in 2.6.0.  Extracted from DataTable.

 

 

Profiler  (promoted from Beta to GA)

- Bug Fixes

- Fixed issue with leaking global "object" variable.

 

 

Profiler Viewer

- No changes

 

 

Reset

- Enhancements

- Added del,ins{text-decoration:none;} per SF-1957908

-  KNOWN ISSUE:

    Beginning in Opera 9.5, a padding value of 0 on radio

    buttons and checkboxes prevents Opera from rendering

    their visually attractive checkmarks and filled circles

    for the radios. This has NOT been addressed in 2.6.0,

    however you can apply this patch if you desire:

           input[type="checkbox"],input[type="radio"] {padding:1px;}

 

 

Resize  (promoted from Beta to GA)

- Enhancements

- Added support for the new useShim config on Resize objects   

 

- Bug fixes

- [SF 1993048] YAHOO.util.Easing is undefined (without opt...

- [SF 2020779] [doc] endResize event for Resize component ...

- [SF 2034517] Bottom drifts on top drag in IE7/FF3

- [SF 2074283] Splitter fails when dragged over richtext e...

 

 

Selector

- Enhancements

- now supporting cross-browser "for" attribute

 

- Bug fixes

- gracefully handling non-existant IDs

 

                                                     

Slider

- Enhancements

-  Added basic skin and image assets

 

- Bug fixes        

- Vertical DualSlider correctly calculates minRange

-  Correct handling of backgroundEnabled and lock()ing

-  verifyOffset correction for background element moving in response to change event handler

-  Target x,y rounded in response to FF (at least) producing subpixel coords

-  _slideEnd now cleans state before firing slideEnd event

 

 

Tab View

- Bug Fixes            

- activeIndex and activeTab sync issue fixed

- activeIndex change events mapped to activeTab (and vice-versa)

 

 

Tree View

- Enhancements

- Keyboard Navigation

-  Delegated event listeners replace the inline listeners

-  Tree serialization/deserialization

-  Build tree from existing markup

-  Node click and dblclick events

-  DateNode (calendar control integration)

-  Editable node labels (double-click to edit the label)

-  render/destroy methods

 

 

Uploader

- Update pending.

 

 

YAHOO Global

- No changes

 

 

YUI Loader

- Enhancements

- AutoComplete requires DataSource.

- Config always used if provided to insert().

- Added timeout support, which is off by default.  Add a 'timeout' config value greater than zero and an

   onTimeout handler to use it.

- Added combo handler support, which is off by default.  Set 'combine' to true to use it.

- Filters are applied to new modules that have a 'fullpath' attribute.

- resize, editor, simpleeditor, layout, datasource, datatable, cookie, profiler, yuiloader out of beta.

- Added carousel, paginator

- Added slider skin.

 

 

YUI Test

- Enhancements

- Added failsafe mechanism for wait() - will automatically fail a test after 10 seconds if resume() isn't called.

-  Augmented wait() to allow a single argument, a timeout after which point the test should fail.

 

- Bug fixes        

-  Fixed small bug in TestManager.


#38554 From: "irene varas" <ivaras2007@...>
Date: Wed Oct 1, 2008 8:47 pm
Subject: Re: How to refresh a datatable when the datatable become from a datasource xml???
irene_varas2005
Send Email Send Email
 
hi .. i have a question.. when i use the method  senRequest  for example

myDataTable.getDataSource().sendRequest('',myDataTable.onDataReturnInitializeTable, myDataTable);

what exactly do the callback onDataReturnInitializeTable?? the callback compare the original data with the actual data or direct retrieve the data???? there are any cache ??? 

my problem is the next my application is about join in to courses, for example in the datatable the user can view courses like.. math, language, etc and each course have quote, there are "n" users using the application, the users can do request to the server to register in a course, every time  the quote is lower for example 

time 1
Course        quote 
Español       35 
Mathematic  22 
Grammar      29

time 2  
Course        quote 
Español       32 
Mathematic  19 
Grammar      10

i need, when a user register in a course all the other users can view that the quote is lower 
how can i do that 

help me please 
sorry for my bad english


 

2008/10/1 Satyam <satyam@...>

In:

http://developer.yahoo.com/yui/datatable/#datasource

read the section titled "getting more data"

Satyam

irene_varas2005 wrote:
> Hi i'm trying to refresh the data of the datatable using
> onReturnDataInicializeTable
> but i think it works only when the datasource notice that a new row is
> node is added in the xml , i want to refresh the datatable when a cell
> change for example
> first teh xml is
> <id>1</id>
> <count>30</count>
> then the xml change to
> <id>1</id>
> <count>31</count>
>
> how can i refresh the datatable in this case
>
> regards
> irene
>
>
>
> ------------------------------------
>
> 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.5/1700 - Release Date: 30/09/2008 11:03
>
>




--
" Prefiero almas altivas y altaneras que serviles y rastreras, porque se puede perdonar a las panteras, pero nunca, jamás a los reptiles "
Napoleon Bonaparte

#38555 From: "bretlevy" <bret@...>
Date: Wed Oct 1, 2008 9:08 pm
Subject: Re: Using two color picker in same page.
bretlevy
Send Email Send Email
 
You may want to look at this simple demo too:

   http://sandbox.bluelinkdemo.com/sandbox/colortest1.htm

This example shows how to have multiple color "inputs" re-using the
same color picker object.  This may be what you're looking for.

Note that I show the "color" in the textbox versus the hex value, but
you can see how to change it to show the text value too (or in place
of the color).

~~bret



--- In ydn-javascript@yahoogroups.com, "anil_shrestha123"
<anil_shrestha123@...> wrote:
>
> I have used color picker and it worked well.
>
> My requirement is to use two color picker container and extract the
> value of HEX field and put in my seperate text field.
> My code looks like this in colorpicker-fromscript_clean.html
>
> <input type="text" id="hexval1">
> <input type="text" id="hexval2">
> <div id="container1">
> </div>
> <div id="container2">
> </div>
>
> I have extracted the value of HEX field of color picker container1
> and put it in text field "hexval1".
>
> But I did not get the solution for extracting and putting the HEX
> value of color picker container2 in text field "hexval2".
>
> Pls help me if there is solution...
>

#38556 From: "webbylechat" <mikael.grave@...>
Date: Wed Oct 1, 2008 9:16 pm
Subject: API Documentation for older YUI versions
webbylechat
Send Email Send Email
 
Hi,

Is API Documentation for versions of YUI prior to 2.6 are available on
the YUI site?
If not, where can I download YUI 2.4.1, I am supporting an app that
uses YUI 2.4.1 loaded from the Yahoo network, and don't have the API
documentation.

Thank you!

--Mikael

#38557 From: Adam Moore <adamoore@...>
Date: Wed Oct 1, 2008 9:36 pm
Subject: Re: API Documentation for older YUI versions
adam.moore
Send Email Send Email
 
On Wed, Oct 01, 2008 at 09:16:42PM -0000, webbylechat wrote:
> Is API Documentation for versions of YUI prior to 2.6 are available on
> the YUI site?  If not, where can I download YUI 2.4.1, I am supporting
> an app that uses YUI 2.4.1 loaded from the Yahoo network, and don't
> have the API documentation.

Older releases (which include the API documentation) can be downloaded
from SourceForge:

https://sourceforge.net/project/showfiles.php?group_id=165715&package_id=195387

-Adam

#38558 From: Shige Takeda <stakeda@...>
Date: Wed Oct 1, 2008 9:48 pm
Subject: charts: how to set xaxis and yaxis labels?
stakeda@...
Send Email Send Email
 
Charts 2.5.2 or 2.6:

Could anybody know how to set the X-Axis / Y-Axis labels?
Can NumericAxis object include it or Chart object?

I would like to add "Recall/TRP" to Y-Axis and "FPR" to X-Axis but have
no clue which method/property take them...

...
         var fields = ['fpr'];
         var series = [];
         for (var i=0; i<taskIDs.length; ++i){
             var yf = 'tpr_' + projects[i] + '_' + tasks[i];
             fields.push(yf);
             series.push({
                 displayName: tasks[i] + "(" + projects[i] + ")",
                 yField: yf,
                 style: {size: 1, lineSize:1}
             });
         }

         jsonData.responseType = YAHOO.util.DataSource.TYPE_JSON;
         jsonData.responseSchema = {
             resultsList: "result",
             fields: fields
         };

         var xAxis = new YAHOO.widget.NumericAxis();
         xAxis.minimum = 0;
         xAxis.maximum = 0.1;
         xAxis.majorUnit = 0.02;

         var yAxis = new YAHOO.widget.NumericAxis();
         yAxis.minimum = 0;
         yAxis.maximum = 1;
         yAxis.majorUnit = 0.1;

         mChaROC = new YAHOO.widget.LineChart( "chart", jsonData, {
             xField: 'fpr',
             series: series,
             xAxis: xAxis,
             yAxis: yAxis,
             style: {
                 legend: {display:'bottom'}
             },
             // only needed for flash player express install
             expressInstall: "../expressinstall.swf"
         });


Thanks,
-- Shige

#38559 From: Satyam <satyam@...>
Date: Wed Oct 1, 2008 9:56 pm
Subject: Re: How to refresh a datatable when the datatable become from a datasource xml???
satyamutsa
Send Email Send Email
 
irene varas wrote:
> hi .. i have a question.. when i use the method  senRequest  for example
>
>
myDataTable.getDataSource().sendRequest('',myDataTable.onDataReturnInitializeTab\
le,
> myDataTable);
>
> what exactly do the callback onDataReturnInitializeTable?? the
> callback compare the original data with the actual data or direct
> retrieve the data????
onDataReturnInitializeTable does just that,it initializes the table as
if it had not been there before, it doesn't compare to what's already
in, it doesn't care at all about what's in, it draws it all again.
> there are any cache ???
>
> my problem is the next my application is about join in to courses, for
> example in the datatable the user can view courses like.. math,
> language, etc and each course have quote, there are "n" users using
> the application, the users can do request to the server to register in
> a course, every time  the quote is lower for example
>
> time 1
> Course        quote
> Español       35
> Mathematic  22
> Grammar      29
>
> time 2
> Course        quote
> Español       32
> Mathematic  19
> Grammar      10
>
> i need, when a user register in a course all the other users can view
> that the quote is lower
> how can i do that
>
Yours is not a User Interface issue, it is the normal issue any
reservation system deals with everyday and has dealt with for decades.
Usually, this is not a problem until you get to the very last few
places, users can hardly care if there are 35 or 32, they only care if
they get their seat in that course.

What you should be really concerned about is how you update the
database, make sure your reservation is made in a single, atomic SQL
operation, usually through an uninterrupted stored procedure.  If you
don't get to do the update in the database atomic, you might
unintentionally create over-bookings.

As for the user, it is first come-first served, and if you took your
time thinking about it, you missed.  I wouldn't even care to show the
exact number of places available, I would show them in red if there are
five or less, yellow for 10 or less, blue for 20 or less and green above
30.  Users should know that if they take too long to decide on red ones,
they might miss the course, yellow they might think about it for a while
and green they may wait until next day.  You put your own scale for a
real case.  Just give them a hint of how tight things are, there is
probably no need to be so precise.  If you give them numbers, people
will complain that the numbers are not accurate, if you just give them a
hint, the hint was red and when they decided, the system says "sorry,
your request could not be granted", what can they say!  Someone else was
faster.


> help me please
> sorry for my bad english
Not bad at all but, of course, native English speakers might think
otherwise ;-)

Satyam

>
>
>
>
> 2008/10/1 Satyam <satyam@... <mailto:satyam@...>>
>
>     In:
>
>     http://developer.yahoo.com/yui/datatable/#datasource
>
>     read the section titled "getting more data"
>
>     Satyam
>
>     irene_varas2005 wrote:
>     > Hi i'm trying to refresh the data of the datatable using
>     > onReturnDataInicializeTable
>     > but i think it works only when the datasource notice that a new
>     row is
>     > node is added in the xml , i want to refresh the datatable when
>     a cell
>     > change for example
>     > first teh xml is
>     > <id>1</id>
>     > <count>30</count>
>     > then the xml change to
>     > <id>1</id>
>     > <count>31</count>
>     >
>     > how can i refresh the datatable in this case
>     >
>     > regards
>     > irene
>     >
>     >
>     >
>     > ------------------------------------
>     >
>     > 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.5/1700 - Release Date:
>     30/09/2008 11:03
>     >
>     >
>
>
>
>
> --
> " Prefiero almas altivas y altaneras que serviles y rastreras, porque
> se puede perdonar a las panteras, pero nunca, jamás a los reptiles "
> Napoleon Bonaparte
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.7.5/1702 - Release Date: 01/10/2008
9:05
>
>

#38560 From: "wilsonsheldon" <wilsonsheldon@...>
Date: Wed Oct 1, 2008 10:00 pm
Subject: Submenus of scrolling menus
wilsonsheldon
Send Email Send Email
 
Hi everyone,

Regarding the menu component.  I'm using 2.6.0.  I know there is an issue:

"Submenus of a scrolling Menu are not visible in IE 6 and 7 in Quirks
Mode.  There is a bug in IE that prevents absolutely positioned
elements from exceeding the height and width of their parent element
when the parent's "overflow" CSS property is set to "hidden."

Has anyone come up with a fix for this?  Unfortunately, I have no
control over the rest of the page in this app except for the
navigation.  It works and looks great in all browsers except that in
IE6 the tertiary flyouts are hidden.

If I remove, overflow: hidden from the CSS it simply doesn't scroll.

Any help is greatly appreciated.

Thank you,
Wilson

#38561 From: "daisyhmazie" <daisyhmazie@...>
Date: Wed Oct 1, 2008 10:14 pm
Subject: Database InLine editing Affecting Values of other columns in Row
daisyhmazie
Send Email Send Email
 
Hi!
Im new using YUI and very rusty with my javascript.  Im having trouble
figure out how to firstly have a column that's calculated from the
values of another column in the record.  And secondly, when a column
is edited, have the calculated column change it's value based on the
new value entered.
TIA!
D

#38562 From: Eric Miraglia <miraglia@...>
Date: Wed Oct 1, 2008 10:31 pm
Subject: Re: 'hello world' datatable not being displayed
ericmiraglia
Send Email Send Email
 
A direct link to the Configurator prepopulated with DataTable's dependencies, including optional dependencies:


Regards,
Eric


On Oct 1, 2008, at 11:08 AM, Satyam wrote:

That error often signals that you have not loaded all the library files, 
that you didn't load them in order or even that you loaded one more than 
once and the second time it overstepped on something already initialized. 

Use the configurator to check you have all that's needed:

http://developer.yahoo.com/yui/articles/hosting/#configure

Satyam

hewsonism wrote:
> Hello all,
>
> I am new to javascript and YUI. I have tried to figure this out on my
> own, but have not had any luck.
>
> I have a web application that consists of essentially a menu and a div
> to display content based on what menu item is selected from the menu. 
> When a menu item is selected the below is event handler is called.
>
> I make a simple query to the server, the server replies with a JSON
> string and depending on the contents of that string I fill the display
> div (called 'content-paine').
>
> For singleton data I call displaySingletonData(), this is working
> correctly, conversely I can not for the life of me figure out why the
> table will not display.
>
> Orginally the table display code was not wrapped in a listener, this
> resulted in firebug complaining that YAHOO.widget.DataTable was not a
> constructor. From another post in this group, I found that the page
> elements might not have been loaded yet and that was creating the
> situation. After wrapping the code I do not get any errors, but nothing
> is displayed either. Perhaps the 'load' event is not happening and so
> the datatable code is never called?
>
> Any suggestions / comments are welcome.
>
> Thanks,
>
> Steve
>
>
>
> **** begin function ****
> function setContentPaine (eventType, fireMethodArgs, contentObj) {
>
> var handleSuccess = function (responseObj) {
>
> //attempt to parse the returned JSON string
> try{
> messages = YAHOO.lang.JSON.parse(responseObj.responseText);
> }
> catch (err) {
> setErrorDisplay('','', { info: "Could not parse response from
> server." });
> return;
> }
>
> // look @ the returned data, its displayed differently depending on
> // whether or not the object is a singleton or not.
> if (messages.data.singleton == true) {
> displaySingletonData(messages.data);
> } else {
>
> YAHOO.util.Event.addListener(window, "load", function() {
> YAHOO.example.Basic = new function() {
> var bookorders = [
> {id:"po-0167", date:new Date(1980, 2, 24), quantity:1,
> amount:4, title:"A Book About Nothing"},
> {id:"po-0783", date:new Date("January 3, 1983"),
> quantity:null, amount:12.12345, title:"The Meaning of Life"},
> {id:"po-0297", date:new Date(1978, 11, 12),
> quantity:12, amount:1.25, title:"This Book Was Meant to Be Read Aloud"},
> {id:"po-1482", date:new Date("March 11, 1985"),
> quantity:6, amount:3.5, title:"Read Me Twice"}
> ];
> var myColumnDefs =
> [{key:"id"},{key:"date"},{key:"quantity"},{key:"amount"},{key:"title"}];
> this.myDataSource = new YAHOO.util.DataSource(bookorders);
> this.myDataSource.responseType =
> YAHOO.util.DataSource.TYPE_JSARRAY;
> this.myDataSource.responseSchema = {fields:
> ["id","date","quantity","amount","title"]};
>
> this.myDataTable = new
> YAHOO.widget.DataTable("content-paine",
> myColumnDefs, this.myDataSource);
> };
> });
> }
> }
>
> var handleFailure = function (responseObj) {
> setErrorDisplay("","", {info: responseObj.statusText});
> }
>
> var callbackObj = { success: handleSuccess, failure: handleFailure,
> argument:{} };
>
> var sUrl = "../content.py";
> var postData = "pageid="+contentObj.pageId;
> var request = YAHOO.util.Connect.asyncRequest('POST', sUrl,
> callbackObj, postData);
>
> }
> **** end function ****
>
>
>
> ------------------------------------
>
> 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.5/1702 - Release Date: 01/10/2008 9:05
>
> 



#38563 From: Eric Miraglia <miraglia@...>
Date: Wed Oct 1, 2008 10:33 pm
Subject: Re: Re: 2.6.0 release
ericmiraglia
Send Email Send Email
 
Sean,

George has aggregated the release notes for you here:


Regards,
Eric


On Oct 1, 2008, at 9:55 AM, Sean Bradshaw wrote:

Any chance that release notes are ready for distribution?



#38564 From: Dav Glass <dav.glass@...>
Date: Wed Oct 1, 2008 10:46 pm
Subject: Re: Re: Invalid argument error at line 7, in IE, when switching between IE's tabs.
dav.glass
Send Email Send Email
 
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_minHeigh\
t

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_RETRY\
S:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OV\
ERRIDE: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:funct\
ion(){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
>
>
>

#38565 From: Shige Takeda <stakeda@...>
Date: Wed Oct 1, 2008 11:05 pm
Subject: charts: how to set xaxis and yaxis labels?
smtakeda
Send Email Send Email
 
Charts 2.5.2 or 2.6:

Could anybody know how to set the X-Axis / Y-Axis labels?
Can NumericAxis object include it or Chart object?

I would like to add "Recall/TRP" to Y-Axis and "FPR" to X-Axis but have
no clue which method/property take them...

...
        var fields = ['fpr'];
        var series = [];
        for (var i=0; i<taskIDs.length; ++i){
            var yf = 'tpr_' + projects[i] + '_' + tasks[i];
            fields.push(yf);
            series.push({
                displayName: tasks[i] + "(" + projects[i] + ")",
                yField: yf,
                style: {size: 1, lineSize:1}
            });
        }

        jsonData.responseType = YAHOO.util.DataSource.TYPE_JSON;
        jsonData.responseSchema = {
            resultsList: "result",
            fields: fields
        };

        var xAxis = new YAHOO.widget.NumericAxis();
        xAxis.minimum = 0;
        xAxis.maximum = 0.1;
        xAxis.majorUnit = 0.02;

        var yAxis = new YAHOO.widget.NumericAxis();
        yAxis.minimum = 0;
        yAxis.maximum = 1;
        yAxis.majorUnit = 0.1;
                  mChaROC = new YAHOO.widget.LineChart( "chart", jsonData, {
            xField: 'fpr',
            series: series,
            xAxis: xAxis,
            yAxis: yAxis,
            style: {
                legend: {display:'bottom'}
            },
            // only needed for flash player express install
            expressInstall: "../expressinstall.swf"
        });


Thanks,
-- Shige

#38566 From: "tripp.bridges" <trippb@...>
Date: Wed Oct 1, 2008 11:17 pm
Subject: Re: charts: how to set xaxis and yaxis labels?
tripp.bridges
Send Email Send Email
 
Hi,
You can format the axis labels through the labelFunction of you axis.
It is described in the Customizing Axis Labels section here:

http://developer.yahoo.com/yui/charts/#using

Thanks,
Tripp
--- In ydn-javascript@yahoogroups.com, Shige Takeda <stakeda@...> wrote:
>
> Charts 2.5.2 or 2.6:
>
> Could anybody know how to set the X-Axis / Y-Axis labels?
> Can NumericAxis object include it or Chart object?
>
> I would like to add "Recall/TRP" to Y-Axis and "FPR" to X-Axis but have
> no clue which method/property take them...
>
> ...
>        var fields = ['fpr'];
>        var series = [];
>        for (var i=0; i<taskIDs.length; ++i){
>            var yf = 'tpr_' + projects[i] + '_' + tasks[i];
>            fields.push(yf);
>            series.push({
>                displayName: tasks[i] + "(" + projects[i] + ")",
>                yField: yf,
>                style: {size: 1, lineSize:1}
>            });
>        }
>
>        jsonData.responseType = YAHOO.util.DataSource.TYPE_JSON;
>        jsonData.responseSchema = {
>            resultsList: "result",
>            fields: fields
>        };
>
>        var xAxis = new YAHOO.widget.NumericAxis();
>        xAxis.minimum = 0;
>        xAxis.maximum = 0.1;
>        xAxis.majorUnit = 0.02;
>
>        var yAxis = new YAHOO.widget.NumericAxis();
>        yAxis.minimum = 0;
>        yAxis.maximum = 1;
>        yAxis.majorUnit = 0.1;
>                  mChaROC = new YAHOO.widget.LineChart( "chart",
jsonData, {
>            xField: 'fpr',
>            series: series,
>            xAxis: xAxis,
>            yAxis: yAxis,
>            style: {
>                legend: {display:'bottom'}
>            },
>            // only needed for flash player express install
>            expressInstall: "../expressinstall.swf"
>        });
>
>
> Thanks,
> -- Shige
>

#38567 From: "tripp.bridges" <trippb@...>
Date: Wed Oct 1, 2008 11:28 pm
Subject: Re: YUI Charts
tripp.bridges
Send Email Send Email
 
Hi,
Your problem is in your data array. You have string values defined.
Change to this:

var siebkurve = [
{ size: 0.315, value: 97},
{ size: 0.200, value: 6},
{ size: 0.100, value: 1}
];

That will get the chart to display. If you want the labels to be
formatted as you have them in your current data. You can use the
labelFunction of the NumericAxis to add the "mm"

Thanks,
Tripp

--- In ydn-javascript@yahoogroups.com, "Jordi Boggiano"
<j.boggiano@...> wrote:
>
> Hi,
>
> I am trying to build an logarithmic X axis and well, I am completely
> lost as the code probably shows.
>
> What I have is the size on the X axis, that should range from "<
> 0.100mm" to "> 0.315mm", and each value is the Y coordinate..
>
> I don't know if that's enough for anyone to help me, but I sure hope
> so because I have no clue what's wrong here. At some point it worked
> with a logarithmic Y axis, but that's not what we need unfortunately.
>
> ====================================
>
> YAHOO.widget.Chart.SWFURL =
> "http://yui.yahooapis.com/2.5.2/build/charts/assets/charts.swf";
>
> siebkurve = [
> { size: "0,315mm", value: 97},
> { size: "0,200mm", value: 6},
> { size: "0,100mm", value: 1}
> ];
>
> var seriesDef = [ { displayName: "Size", yField: "value" } ];
>
> var myDataSource = new YAHOO.util.DataSource( siebkurve );
> myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
> myDataSource.responseSchema = {
>  fields: [ "size", "value" ]
> };
>
> var valueAxis = new YAHOO.widget.NumericAxis();
>
> var sizeAxis = new YAHOO.widget.NumericAxis();
> sizeAxis.scale = "logarithmic";
>
> var mychart = new YAHOO.widget.LineChart( "skchart", myDataSource,
> {
>  xField: "size",
>  series: seriesDef,
>  yAxis: valueAxis,
>  xAxis: sizeAxis
> });
>
> ====================================
>
> Thanks for any help.
> Cheers,
> Jordi
>

#38568 From: "w.davidow" <yumyum819@...>
Date: Thu Oct 2, 2008 12:07 am
Subject: YAHOO.util.KeyListener doesn't fire key up on ctrl key?
w.davidow
Send Email Send Email
 
I'm messing around with some code to trap 'ctrl' key presses and i'm
unable to trap the keyup event for the ctrl key... here is the code
I've got:

YAHOO.examples.ctrlListener = {
     init: function() {
         var dn = new YAHOO.util.KeyListener(document, {keys: 17},
this.handleKeyDown, YAHOO.util.KeyListener.KEYDOWN);
         dn.enable();
         var up = new YAHOO.util.KeyListener(document, {keys: 17},
this.handleKeyUp, YAHOO.util.KeyListener.KEYUP);
         up.enable();
     },
     handleKeyDown: function(e) {
         alert('ctrl down');
     },
     handleKeyUp: function(e) {
         alert('ctrl up');
     }
};


the handleKeyDown method works fine and alerts when the ctrl key (17)
is pressed, but the up even does not work. but if i switch keys {keys:
49} (the '1' key) it works for both.

is this a bug?  I also created the following code to see if there just
is no key up event that gets fired for the ctrl key, but that's not
the case - this works perfectly:


YAHOO.examples.ctrlListener = {
     init: function() {
         Event.on(document, "keydown",  this.handleKeyDown,  this, true);
         Event.on(document, "keyup",  this.handleKeyUp,  this, true);
     },
     handleKeyDown: function(e) {
         var kc = Event.getCharCode(e);
         if(kc == '17') { // ctrl
             alert('down');
         }
     },
     handleKeyUp: function(e) {
         var kc = Event.getCharCode(e);
         if(kc == '17') { // ctrl
             alert('up')
         }
     }
};

#38569 From: "irene varas" <ivaras2007@...>
Date: Thu Oct 2, 2008 12:09 am
Subject: Re: How to refresh a datatable when the datatable become from a datasource xml???
irene_varas2005
Send Email Send Email
 
you are right 

thanks satyam :) 

2008/10/1 Satyam <satyam@...>



irene varas wrote:
> hi .. i have a question.. when i use the method senRequest for example
>
> myDataTable.getDataSource().sendRequest('',myDataTable.onDataReturnInitializeTable,
> myDataTable);
>
> what exactly do the callback onDataReturnInitializeTable?? the
> callback compare the original data with the actual data or direct
> retrieve the data????
onDataReturnInitializeTable does just that,it initializes the table as
if it had not been there before, it doesn't compare to what's already
in, it doesn't care at all about what's in, it draws it all again.

> there are any cache ???
>
> my problem is the next my application is about join in to courses, for
> example in the datatable the user can view courses like.. math,
> language, etc and each course have quote, there are "n" users using
> the application, the users can do request to the server to register in
> a course, every time the quote is lower for example
>
> time 1
> Course quote
> Español 35
> Mathematic 22
> Grammar 29
>
> time 2
> Course quote
> Español 32
> Mathematic 19
> Grammar 10
>
> i need, when a user register in a course all the other users can view
> that the quote is lower
> how can i do that
>
Yours is not a User Interface issue, it is the normal issue any
reservation system deals with everyday and has dealt with for decades.
Usually, this is not a problem until you get to the very last few
places, users can hardly care if there are 35 or 32, they only care if
they get their seat in that course.

What you should be really concerned about is how you update the
database, make sure your reservation is made in a single, atomic SQL
operation, usually through an uninterrupted stored procedure. If you
don't get to do the update in the database atomic, you might
unintentionally create over-bookings.

As for the user, it is first come-first served, and if you took your
time thinking about it, you missed. I wouldn't even care to show the
exact number of places available, I would show them in red if there are
five or less, yellow for 10 or less, blue for 20 or less and green above
30. Users should know that if they take too long to decide on red ones,
they might miss the course, yellow they might think about it for a while
and green they may wait until next day. You put your own scale for a
real case. Just give them a hint of how tight things are, there is
probably no need to be so precise. If you give them numbers, people
will complain that the numbers are not accurate, if you just give them a
hint, the hint was red and when they decided, the system says "sorry,
your request could not be granted", what can they say! Someone else was
faster.


> help me please
> sorry for my bad english
Not bad at all but, of course, native English speakers might think
otherwise ;-)

Satyam

>
>
>
>
> 2008/10/1 Satyam <satyam@... <mailto:satyam@...>>

>
> In:
>
> http://developer.yahoo.com/yui/datatable/#datasource
>
> read the section titled "getting more data"
>
> Satyam
>
> irene_varas2005 wrote:
> > Hi i'm trying to refresh the data of the datatable using
> > onReturnDataInicializeTable
> > but i think it works only when the datasource notice that a new
> row is
> > node is added in the xml , i want to refresh the datatable when
> a cell
> > change for example
> > first teh xml is
> > <id>1</id>
> > <count>30</count>
> > then the xml change to
> > <id>1</id>
> > <count>31</count>
> >
> > how can i refresh the datatable in this case
> >
> > regards
> > irene
> >
> >
> >
> > ------------------------------------
> >
> > 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.5/1700 - Release Date:
> 30/09/2008 11:03
> >
> >
>
>
>
>
> --
> " Prefiero almas altivas y altaneras que serviles y rastreras, porque
> se puede perdonar a las panteras, pero nunca, jamás a los reptiles "
> Napoleon Bonaparte
>
> ----------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.7.5/1702 - Release Date: 01/10/2008 9:05
>
>




--
" Prefiero almas altivas y altaneras que serviles y rastreras, porque se puede perdonar a las panteras, pero nunca, jamás a los reptiles "
Napoleon Bonaparte

#38570 From: "tssha" <tsha@...>
Date: Thu Oct 2, 2008 12:19 am
Subject: Re: Connection Manager and UTF-8 (problem only with IE)
tssha
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, "Tom" <tomnyc2004@...> wrote:
>
> hi all,
>
> I feel a little bit stupid because I just cannot figure out what causes
> my problem. so I hope you can help me:
>
> my whole website is utf-8 (php-header, meta-tag, files saved as utf-8,
> mysql utf-8).
> I never had a problem with that.
> Now I am using the dialog with two simple fields and want the user
> inputs to be saved in MySQL with the connection manager.
>
> For now and for debug purposes the php file that is executed via the
> connection manager does only write to a text file (which is also utf-8).
> This works perfect in Firefox.
> In IE (7) I only get ????? (question marks).
>
> I really hope you can help me here.

<snip>

Add the following code before the asyncRequest() call:

YAHOO.util.Connect._default_post_header =
"application/x-www-form-urlencoded; charset=UTF-8"
// All subsequent asyncRequest() calls to follow.

What do you see in your file, now, when using IE?  The expected
characters or rubbish, still?

Regards,
Thomas

#38571 From: "preethimaddy" <preethimaddy@...>
Date: Thu Oct 2, 2008 12:22 am
Subject: how to show/hide message base on autocomplete results
preethimaddy
Send Email Send Email
 
Hi..
I have a textfield in which im implementing autocomplete.the
autocomplete functionality is called after the user types in the
first 5 characters.Now my requirement is the user can still type in
data even if it doesnt show up in the the div container.Say for
example i create a textfield for cities.After the user types in the
first 3 chars it shows me a list of cities .The user can pick one
from that list ot type in the city if not found in the list.Now i
need to show a message "city is found" next to the textbox if the
user selects one from the autocomplete list else dont display message.

I have been able to show/hide the message but the problem is say the
user first selects the city from the list so i show the message but
for some reason its the wrong city the user hits the backspace and
clears the value the message is still shown how do i hide it..In the
testfield when the user changes the value i need to hide that message
any suggestion how to do it.. Can soem one help me in telling what
should i be doing to achieve this.is there any event i could use.

code:
----------------------------------------------------------------------
----------

  var myAutoComp = new YAHOO.widget.AutoComplete
("myInput","myContainer", myDataSource);
	 myAutoComp.prehighlightClassName = "yui-ac-prehighlight";
	 myAutoComp.maxResultsDisplayed = 20;
          myAutoComp.useShadow = true;
	 myAutoComp.minQueryLength = 5;
	 myAutoComp.allowBrowserAutocomplete = false; var
itemSelectHandler = function(sType, aArgs) {
var data = aArgs[2]; //This would return the list of cities};
myAutoComp.formatResult = function(aResultItem, sQuery) {
   var sKey = aResultItem[0]; // the entire result key
sKey = sKey.replace(/&/g,"&");
	 if (sKey)
		 return sKey;
	 else
		 return "";}; //subscribe  handler to the event,
assuming//you have an AutoComplete instance
myAC:myAutoComp.itemSelectEvent.subscribe(itemSelectHandler);

#38572 From: "tssha" <tsha@...>
Date: Thu Oct 2, 2008 12:44 am
Subject: Re: Connection Manager and UTF-8 (problem only with IE)
tssha
Send Email Send Email
 
--- In ydn-javascript@yahoogroups.com, "tssha" <tsha@...> wrote:
>
> --- In ydn-javascript@yahoogroups.com, "Tom" <tomnyc2004@> wrote:
> >
> > hi all,
> >
> > I feel a little bit stupid because I just cannot figure out what
causes
> > my problem. so I hope you can help me:
> >
> > my whole website is utf-8 (php-header, meta-tag, files saved as utf-8,
> > mysql utf-8).
> > I never had a problem with that.
> > Now I am using the dialog with two simple fields and want the user
> > inputs to be saved in MySQL with the connection manager.
> >
> > For now and for debug purposes the php file that is executed via the
> > connection manager does only write to a text file (which is also
utf-8).
> > This works perfect in Firefox.
> > In IE (7) I only get ????? (question marks).
> >
> > I really hope you can help me here.
>
> <snip>
>
> Add the following code before the asyncRequest() call:
>
> YAHOO.util.Connect._default_post_header =
> "application/x-www-form-urlencoded; charset=UTF-8"
> // All subsequent asyncRequest() calls to follow.
>
> What do you see in your file, now, when using IE?  The expected
> characters or rubbish, still?

Actually, strike the previous suggestion.  I wrongly assumed you were
using the Dialog's form submission routine.

In looking at the URI, you are retrieving the values from Dialog's
getData.  However, I do not see any encoding operation performed on
the data before it is sent.  Try performing encodeURIComponent() on
data.name and data.descr in the querystring.  Any special characters
in these fields will be safely expressed as %## before being sent to PHP.

Regards,
Thomas

#38573 From: "danvdascalescu" <danvdascalescu@...>
Date: Thu Oct 2, 2008 1:42 am
Subject: Re: [RTE] How to set RTE to do only code editing?
danvdascalescu
Send Email Send Email
 
Hi,

I'm new to the RTE. I started digging into it today in order to build
a code editor for our open-sourced project
http://sourceforge.net/projects/rthree .

I've seen at
http://tech.groups.yahoo.com/group/ydn-javascript/message/21826 that
apparently a "source code" editing functionality has been released
with version 2.4.0... however I didn't find any documentation for
that. I did find the "Code Editor" example at
http://developer.yahoo.com/yui/examples/editor/code_editor.html, which
shows how to edit the HTML source, but that's a bit short of a real
code editor:

1. toolbar buttons don't work in "source code" mode (even if you
comment out the line that disables them). It would be nice to be able
to select some text in source mode, click "b", and have <b> and </b>
inserted around it.

2. there seems to be HTML pretty-printing and filtering against the
<script> element. The former can be disabled apparently by not calling
cleanHTML(), while the latter is addressed at
http://tech.groups.yahoo.com/group/ydn-javascript/message/31167, but
see #3

3. If, in order to get a code editor, we escape <, > and & and load
the text in the HTML editor, we'll have to disable toolbar buttons.
But what if someone pastes rich text from another application? That
will add bogus formatting.

Hope I missed something and there is a "source code" editing mode like
in FCKeditor (I haven't been through the entire docs yet).

Thanks,
Dan

#38574 From: Dav Glass <dav.glass@...>
Date: Thu Oct 2, 2008 2:49 am
Subject: Re: Re: [RTE] How to set RTE to do only code editing?
dav.glass
Send Email Send Email
 
Dan --

No, there is no official source editor in the RTE.
There are issues in Safari and Opera that keep me from writing one.

With the release of Safari 3 and Opera 9.5, it may be possible. I haven't looked
into it in a while..

Here is a prototype that I started working on a while ago:
http://blog.davglass.com/files/yui/codeeditor/

It's not ready, but the concept is where I would be going if it does make it on
the roadmap.

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: danvdascalescu <danvdascalescu@...>
> To: ydn-javascript@yahoogroups.com
> Sent: Wednesday, October 1, 2008 6:42:50 PM
> Subject: [ydn-javascript] Re: [RTE] How to set RTE to do only code editing?
>
> Hi,
>
> I'm new to the RTE. I started digging into it today in order to build
> a code editor for our open-sourced project
> http://sourceforge.net/projects/rthree .
>
> I've seen at
> http://tech.groups.yahoo.com/group/ydn-javascript/message/21826 that
> apparently a "source code" editing functionality has been released
> with version 2.4.0... however I didn't find any documentation for
> that. I did find the "Code Editor" example at
> http://developer.yahoo.com/yui/examples/editor/code_editor.html, which
> shows how to edit the HTML source, but that's a bit short of a real
> code editor:
>
> 1. toolbar buttons don't work in "source code" mode (even if you
> comment out the line that disables them). It would be nice to be able
> to select some text in source mode, click "b", and have and
> inserted around it.
>
> 2. there seems to be HTML pretty-printing and filtering against the
>

#38575 From: "dreamworker22000" <dreamworker22000@...>
Date: Thu Oct 2, 2008 4:10 am
Subject: Off Topic request HTML email
dreamworker2...
Send Email Send Email
 
I was asked to do some specific alterations to an HTML formatted email
today and thought sure something simple for a change be nice - sigh -
I should have known better. evidently yahoo mail and MS mail etc...
have all the same issues as FF, IE, safari blah blah... the formatting
that gets displayed in YAHOO mail shows up differently than MS mail etc..

I'm not asking for a resolution here, rather, hopefully a pointer in
right direction to look for a resolution, on a web page I can
determine browser type and make adjustments, but I suspect a not so
easy to resolve what email client is receiving msg and alter accordingly.

Normally I'd probably write this off with a reply to client that said
sorry no easy way to resolve - but this one is drop dead gorgeous (as
in makes Catherine Zeta Jones look like a 5) and I've always had a
problem saying no to drop dead gorgeous women, so if someone would
care to give me a pointer It would be much appreciated.

OH and did I mention 2.6 is out WOOHOO!!!

#38576 From: Ken Loomis <kloomis@...>
Date: Thu Oct 2, 2008 4:11 am
Subject: Charts No Y series JSON Data
kloomis@...
Send Email Send Email
 
Hi:

I'm having a devil of a time with charts.

First: I couldn't see the YUI Examples in FireFox 3.0. When I tried to
download the latest version of FlashPlayer from the link in YUI, I was
only offered 9.0.124 as the latest version, I installed that and still
couldn't see the examples in FF. (IE was OK.) I found 9.0.45 in a source
for "older versions" Once I downloaded that I could see the examples.
So, 9.0.45 is older than 9.0.124, and Charts only works with the older
version in FF?

Second: I can't get the Y series to display. I tried using an
XHRDataSource (I'm assumimg XHR stands for AJAX?), but I couldn't get
that to work at all. I couldn't see where to specify parameters with the
URL, so I ended up with a tortuous work-around.

I call a function to issue an ajax request :

function buildGraph() {
     postdata = "routine=getWeeklyStats";
     YAHOO.util.Connect.asyncRequest('POST', 'ajax.php',
callbackGetWeekStats, postdata);
}

And then do the callback stuff and end up with:

var handleWeekStatsSuccess = function(o) {
     YAHOO.widget.Chart.SWFURL = "yui-2.6.0/build/charts/assets/charts.swf";
     var info = YAHOO.lang.JSON.parse(o.responseText);
     var graphDataSource = new YAHOO.util.DataSource(info);
     graphDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
     graphDataSource.responseSchema =
     {
       fields:["Week","numTowers","numProjects","numSensors"]
     }
     var seriesDef =
     [
     {displayName:"Towers",yField:"numTowers"},
     {displayName:"Projects",yField:"numProjects"},
     {displayName:"Sensors",yField:"numSensors"}
     ];

     var graph = new YAHOO.widget.LineChart("statsGraph", graphDataSource,
     {
         xField:'Week',
         series:seriesDef
       });
};

.. and I could get the x-axis, but not the y.

I tried:
var graphDataSource = new YAHOO.util.DataSource(o.responseText);
graphDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;

.. but that didn't work at all.

as for using a XHRConnection I followed the example in the Polling
example, but it would never produce the request and as I said there was
no place for params.

So, what am I missing?

By the way, my JSON string: looks like this:

[{"Week":"09\/13\/2008","numTowers":"19","numProjects":"9","numSensors":"5"},{"W\
eek":"09\/20\/2008","numTowers"

:"19","numProjects":"9","numSensors":"26"},{"Week":"09\/27\/2008","numTowers":"1\
9","numProjects":"9","numSensors"

:"35"}]



Thanks,

Ken

#38577 From: Satyam <satyam@...>
Date: Thu Oct 2, 2008 6:21 am
Subject: Re: Database InLine editing Affecting Values of other columns in Row
satyamutsa
Send Email Send Email
 
You can list columns in the column defs array that don't exist in the
responseSchema.fields array.  Those columns need to have a formatter
function defined because otherwise they would be empty.

http://developer.yahoo.com/yui/datatable/#format

The formatter function has access to all values in the record and can
calculate the value for this extra column based on them.

At anytime you want to refresh the value on that column, you can call
formatCell:

http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#method_formatCel\
l

for example, in response to editorSaveEvent:

http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html#event_editorSave\
Event

Satyam

daisyhmazie wrote:
> Hi!
> Im new using YUI and very rusty with my javascript.  Im having trouble
> figure out how to firstly have a column that's calculated from the
> values of another column in the record.  And secondly, when a column
> is edited, have the calculated column change it's value based on the
> new value entered.
> TIA!
> D
>
>
> ------------------------------------
>
> 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.5/1702 - Release Date: 01/10/2008
9:05
>
>

#38578 From: Todd Kloots <kloots@...>
Date: Thu Oct 2, 2008 6:21 am
Subject: Re: How do you change the text of a button?
toddkloots
Send Email Send Email
 
Hi John -

Are you including the optional YUI Button dependency?   If so, then just
set the Button's "label" attribute via the "set" method:

oButton.set("label","some new label");

If you aren't using Button, your Dialog's buttons will be created using
the HTML <button> element, so you can change their label via the
innerHTML property:

oButton.innerHTML = "some new lable";

- Todd

John Panelli wrote:
>
> Hi,
>
> I'm creating a modal dialog with a 'Save' button as follows:
>
> <script language="Javascript">
> YAHOO.namespace('yuiModalDialog');
>
> // Show the Deduction dialog
> function showDlgDeduction() {
> YAHOO.yuiModalDialog.Deduction.show();
> }
>
> // Initialize the Deduction dialog
> function initDlgDeduction() {
> // Define various event handlers for Modal dialogs
> var handleCancel= function() { this.cancel() };
> var handleSave= function() {
> try {
> saveDeduction();
> }
> catch(e) {
> alert(e);
> throw new Error(e);
> } };
> var handleSuccess = function(o) {};
> var handleFailure = function(o) {};
>
> // Instantiate Modal Deduction
> YAHOO.yuiModalDialog.Deduction = new
> YAHOO.widget.Dialog('Deduction', { width : '525px', fixedcenter :
> true, visible : false, modal : true, dragOnly : true, close : true,
> constraintoviewport : true,buttons : [ { text:'Cancel',
> handler:handleCancel }, { text:'Save', handler:handleSave ,
> isDefault:true }] });
>
> // Wire up the success and failure handlers
> YAHOO.yuiModalDialog.Deduction.callback = { success: handleSuccess,
> failure: handleFailure };
>
> // Render the Dialog
> YAHOO.yuiModalDialog.Deduction.render();
>
> // Validate the entries in the modal dialog
> YAHOO.yuiModalDialog.Deduction.validate = function() { return true; };
> }
>
> // Initialize Deduction modal dialog when DOM is ready
> YAHOO.util.Event.onDOMReady (initDlgDeduction);
> </script>
>
> If I want to change the text of the 'Save' button via JavaScript at
> runtime, what JavaScript call do I make?
>
>

#38579 From: Todd Kloots <kloots@...>
Date: Thu Oct 2, 2008 6:28 am
Subject: Re: Unable to stop form submit
toddkloots
Send Email Send Email
 
Kel -

It is a bug in Button that is fixed in the latest release of YUI
(2.6.0).  You can also work around this problem by not using an inline
"onsubmit" event handler, but by adding a "submit" event handler to your
form via the Event Utility's "on" method.  For example, assuming your
form tag has an id of "my-form", the handler would look like:

YAHOO.util.Event.on("my-form", "submit", function (e) {

     // Stop the form from submitted by using preventDefault
     YAHOO.util.Event.preventDefault(e);

});

Remember - inline event handlers are a bad practice.  If you haven't
already, read this article:

http://en.wikipedia.org/wiki/Unobtrusive_JavaScript

- Todd



Kel wrote:
>
> I'm having problems with a form submitting when <enter> is pressed,
> even though I set the form's onSubmit to return false. I am using
> IE7, and when I remove the code that transforms the button to a YUI
> button, it works fine. Here's an example:
>
> <HTML>
> <HEAD>
> <link rel="stylesheet" type="text/css"
> href="yui/build/button/assets/skins/sam/button.css">
> <script type="text/javascript" src="yui/build/yahoo-dom-event/yahoo-
> dom-event.js"></script>
> <script type="text/javascript" src="yui/build/element/element-beta-
> min.js"></script>
> <script type="text/javascript" src="yui/build/button/button-
> min.js"></script>
> </HEAD>
> <BODY CLASS='yui-skin-sam'>
> <FORM NAME='f' onsubmit='return false;'>
> <INPUT NAME='name' TYPE='TEXT' SIZE='20'>
>
> <input type='button' id='mybutton' name='mybutton' value='Save'>
> <script type='text/javascript'>
> var oButton = new YAHOO.widget.Button('mybutton');
> </script>
> </FORM>
> </BODY></HTML>
>
>

Messages 38550 - 38579 of 52481   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help