Re: [Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-07 Thread Frédéric
to addClassName, and wll works fine. -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype

Re: [Proto-Scripty] Re: Custom signal

2009-12-07 Thread Frédéric
() { this._slots = new Array(); }, }); Thanks for your help :o) -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from

Re: [Proto-Scripty] Re: Custom signal

2009-12-07 Thread Frédéric
console... -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr

[Proto-Scripty] Problem using invoke()

2009-12-07 Thread Frédéric
value or is not an object) at line 713 of prototype.js; it is the call to my method: return value[method].apply(value, args); What I did wrong? Is it a problem with this context? -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype

Re: [Proto-Scripty] Re: Problem using invoke()

2009-12-08 Thread Frédéric
my _opacity() function to the buttons, using methodize? -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group

Re: [Proto-Scripty] Re: Problem using invoke()

2009-12-08 Thread Frédéric
Effect.multiple, but the effect is not synchronized on all objects. Neither with a simple loop, but the delay is very small in this last case (I can't see it)... -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Check a mouse button

2009-12-08 Thread Frédéric
Hi, Is there a way to check if a mouse button is pressed in an Event.observe('mousemove') callback ? Thanks, -- 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 to prototype

Re: [Proto-Scripty] Check a mouse button

2009-12-08 Thread Frédéric
Le mardi 8 décembre 2009 13:54, Alex McAuley a écrit : ...observe('mousemove',function(e) { $('SomeElement').observe('click',function() {     doSomethingWIthyourClick(); Ok, so I have to register both events... Thanks :o) -- Frédéric -- You received this message because you

Re: [Proto-Scripty] Re: Problem using invoke()

2009-12-09 Thread Frédéric
()... Look again at my example. You'd fill in the ... with the parameters. Thanks, I got it. -- 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 to prototype-scriptacul...@googlegroups.com

[Proto-Scripty] Include scripts

2009-12-09 Thread Frédéric
Hi, I'm looking for a import script code example, to be able to include parent class code (I write only 1 class per file). Is there something already available? Thanks, -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

Re: [Proto-Scripty] Re: Include scripts

2009-12-09 Thread Frédéric
/ If it does not yet exist, I will try to write my own tool (in python, as I'm familiar with this language). Thanks for your help. -- 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: Check a mouse button

2009-12-09 Thread Frédéric
'); }) there is inside the event object some shortcut to know at the moment the event is fired if a button is clicked. And the same existe in case of a key pressed. I have to check again, but in my previous tests, the isLeftClick() always returned true, and other always returned false... -- Frédéric

Re: [Proto-Scripty] Re: Include scripts

2009-12-09 Thread Frédéric
On mercredi 09 décembre 2009, Tobie Langel wrote: Prototype's using Sprockets[1] for this. You might want to give it a spin. That's exactly what I was looking for! Simple and powerfull... Thanks :o) -- Frédéric -- You received this message because you are subscribed to the Google

Re: [Proto-Scripty] Re: Check a mouse button

2009-12-10 Thread Frédéric
But if I release the button outsideany thumbs, the drag remains active, because I can't detect that it ended. There is maybe a better design to do that? -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

Re: [Proto-Scripty] Re: Check a mouse button

2009-12-11 Thread Frédéric
those two events when mouseup is launch. Ok, I got it! Thanks, -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from

Re: [Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-12 Thread Frédéric
the new stuff on a blank page... -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype

[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

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

2009-12-18 Thread Frédéric
({ initialize:function() { alert(ext: + arguments.length) b.apply(this, arguments); // }, b:function() { alert(int: + arguments.length) } }); -- Frédéric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

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

2009-12-18 Thread Frédéric
to Prototype, so I'll let gurus explain the details ;o) This is the solution I got for my Signal class, some days ago (see T.J. Crowder answer on 07/12/2009 for my post named 'Custom signal'). -- Frédéric -- You received this message because you are subscribed to the Google Groups

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

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

2009-12-19 Thread Frédéric
On samedi 19 décembre 2009, T.J. Crowder wrote: Is it some sort of reference in js world, like Qt is? Is it based on Prototype? No, and no. :-) I found that Ext can use Prototype as an adapter. What does it mean? -- Frédéric -- You received this message because you are subscribed

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

2009-12-19 Thread Frédéric
classes using the Prototype way (Class.create)? -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send

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

2009-12-19 Thread Frédéric
using it. Extending ExtJS components is very similar to Prototype's anyway, except for the Ext instead of Class as the keyword (http://www.extjs.com/learn/Manual:Component:Extending_Ext_Components ) Ok, I see. Thanks. -- Frédéric -- You received this message because you are subscribed

[Proto-Scripty] Passing the content of an array in a form

2009-12-20 Thread Frédéric
::OrderingController._submit(): picts=P4052858.JPG,PB135158.JPG,photo20-08-03_DSC5719net_redimensionner.jpg,_DSC0222.jpg,p1010005.jpg So, why do I get the wrong string in my form field under IE8? What should I use instead of just 'picts'? Thanks, -- Frédéric -- You received this message because

Re: [Proto-Scripty] Re: Passing the content of an array in a form

2009-12-20 Thread Frédéric
into a string: { parameters: { picts[] : picts ... } } Sorry if that's on the wrong track. Thanks for the explanation. I was wondering: a better solution is may be to use json? What do you sthink about? -- Frédéric -- You received this message because you are subscribed to the Google

Re: [Proto-Scripty] Re: Ajax and json

2009-12-21 Thread Frédéric
            // the response.responseJSON property.         }     }); Ok, I got it. Thanks :o) -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from

Re: [Proto-Scripty] Re: Passing the content of an array in a form

2009-12-22 Thread Frédéric
. I'm switching to json, and you're right, it is much easier to handle! -- 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 to prototype-scriptacul...@googlegroups.com. To unsubscribe from

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Frédéric
, third_test? I am familiar w/ Javascript to know that this is possible but unfamiliar w/ Javascript to know how to achieve this. A simple-but-not-smart way is to parse all dom elements and observe all id containting 'test'... -- Frédéric -- You received this message because you are subscribed

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Frédéric
On jeudi 31 décembre 2009, Paul Kim wrote: Sorry, but I'm afraid your simple-but-not-smart way addresses the problem because I am observing elements with class, not id. Oups, sorry. But I guess there is a way to parse all classes defined in CSS? -- Frédéric -- You received