[Proto-Scripty] Complete graphical toolkit in js

2009-12-18 Thread Frédéric
Hi, I'm wondering: does it exist a complete graphical toolkit in javascript? Something like Qt or Gtk, which allows to build complex GUI? I found several nice little projects, but they all use their own design... Thanks, -- Frédéric -- You received this message because you are

[Proto-Scripty] problem with arguments and class creation

2009-12-18 Thread Davide
Hi all, I have a class defined like this var C = Class.create({ initialize:function() { alert(ext: + arguments.length) this.b(arguments); }, b:function() { alert(int: + arguments.length) } }); when I create the class using : c= new C(aa,aa,aa,aa) I have the

Re: [Proto-Scripty] problem with arguments and class creation

2009-12-18 Thread Frédéric
Le vendredi 18 décembre 2009 13:16, Davide a écrit : var C = Class.create({    initialize:function() {      alert(ext: + arguments.length)       this.b(arguments);    },     b:function() {       alert(int: + arguments.length)     } }); Try: var C = Class.create({

[Proto-Scripty] Re: problem with arguments and class creation

2009-12-18 Thread Davide
Hi I played a bit and your solution is giving me INT:2 I implemented this now. var C = Class.create({ initialize:function() { alert(ext: + arguments.length) b.apply(arguments); }, b:function() { alert(int: + arguments[0].length) ; } }); which is giving correct

Re: [Proto-Scripty] Re: problem with arguments and class creation

2009-12-18 Thread Frédéric
Le vendredi 18 décembre 2009 13:34, Davide a écrit : I played a bit and your solution is giving me INT:2 I implemented this now. var C = Class.create({ initialize:function() { alert(ext: + arguments.length) b.apply(arguments); }, b:function() { alert(int:

[Proto-Scripty] Re: Complete graphical toolkit in js

2009-12-18 Thread Matt Foster
Ext.js has a ton of UI stuff prebaked http://extjs.com -- http://positionabsolute.net On Dec 18, 4:40 am, Frédéric f...@gbiloba.org wrote: Hi, I'm wondering: does it exist a complete graphical toolkit in javascript? Something like Qt or Gtk, which allows to build complex GUI? I found

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Matt Foster
I'd just put it in a variable. parameters : '?method=saveDatadata='+data.toJSON(); -- http://positionabsolute.net On Dec 17, 6:48 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Ajax.Updater (and the rest) don't claim to post object graphs to the server, and in fact they don't. They

[Proto-Scripty] Re: problem with arguments and class creation

2009-12-18 Thread T.J. Crowder
Hi, Frédéric was just missing out the `this` keyword: var C = Class.create({ initialize: function() { alert(ext: + arguments.length) this.b.apply(this, arguments); }, b: function() { alert(int: + arguments.length) } }); Function#apply[1] and its

Re: [Proto-Scripty] Re: problem with arguments and class creation

2009-12-18 Thread Frédéric
Le vendredi 18 décembre 2009 15:35, T.J. Crowder a écrit : Frédéric was just missing out the `this` keyword: Oups, right! Sorry... -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

Re: [Proto-Scripty] Re: Complete graphical toolkit in js

2009-12-18 Thread Frédéric
Le vendredi 18 décembre 2009 15:30, Matt Foster a écrit : Ext.js has a ton of UI stuff prebaked http://extjs.com Looks great! Is it some sort of reference in js world, like Qt is? Is it based on Prototype? -- Frédéric -- You received this message because you are subscribed to the

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Ian R
Ahhh. Thank you so much, sir! This solution works perfectly for my needs. And yes, it does make sense, I just didn't realize. This is just so totally awesome... god this is the best day EVER! -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-18 Thread Ian R
Oh, by sir I mean T.J. Crowder (I hadn't yet seen the second reply). I don't mean to crud up the list-serv, and thank you Matt Foster, but I much prefer the first solution... just wanted to clarify :) -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] self-or-ancestor in one whack?

2009-12-18 Thread Walter Lee Davis
I use this construction quite a lot: var elm = evt.element(); if(elm.tagName.toString().toLowerCase() != 'td') elm = elm.up('td'); whenever I am constructing a rollover listener, since it works around the whole issue with mouseover / out events firing whenever you move over a

[Proto-Scripty] Re: problem with arguments and class creation

2009-12-18 Thread Davide
Cool Guys ! Thank you all, implemented and working perfectly ! Also good for increasing JS culture ! On Dec 18, 3:41 pm, Frédéric f...@gbiloba.org wrote: Le vendredi 18 décembre 2009 15:35, T.J. Crowder a écrit : Frédéric was just missing out the `this` keyword: Oups, right! Sorry...

[Proto-Scripty] Re: Firefox's inline JS execution order

2009-12-18 Thread JoJo
I can't use any of Prototype's load listeners or defer because this is before Prototype has been loaded (chicken and egg dilemma). The God (straight up JS) needs to make sure that the egg (Prototype) and chicken (my code that uses Prototype) are only created once. There is no other JS that I am