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

2009-12-09 Thread Frédéric
Le mardi 8 décembre 2009 15:43, T.J. Crowder a écrit :     this._navButtons.each(function(item) {         _opacity(item, ...);     }); The problem is to give additionnal params (for Effect.Oppacity); it does not seem to be possible with each(). That's why I tried invoke()...

[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

[Proto-Scripty] Re: Include scripts

2009-12-09 Thread T.J. Crowder
Hi, Your best bet for something like that is to have a build process that combines the scripts (and then minifies them), and then include the resulting single script with just one script tag. Reading lots of individual script files will be quite slow, because browsers typically will load only one

[Proto-Scripty] Re: Include scripts

2009-12-09 Thread T.J. Crowder
Hi again, But answering the actual question you asked: http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically -- T.J. ;-) On Dec 9, 11:25 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Your best bet for something like that is to have a build process that combines

Re: [Proto-Scripty] Re: Include scripts

2009-12-09 Thread Frédéric
Le mercredi 9 décembre 2009 11:25, T.J. Crowder a écrit : Your best bet for something like that is to have a build process that combines the scripts (and then minifies them), and then include the resulting single script with just one script tag. Reading lots of individual script files will be

[Proto-Scripty] Re: Check a mouse button

2009-12-09 Thread david
Hi Frédéric, When observing an event with: Event.observe('mousemove',function(evt){ if(evt.isLeftClick) alert('left button clicked'); if(evt.isMiddleClick) alert('middle button clicked'); if(evt.isRightClick) alert('right button clicked'); }) there is inside the event object some shortcut

[Proto-Scripty] Progressive update messages from single request

2009-12-09 Thread joe t.
i think i've seen examples of this, but can't recall where, and could use some guidance. Obviously it's easy to handle a 1:1 Request/Response How can i do a true 1:many process? For instance: Client takes a single action which requires the server to perform 3 tasks: * Query database * Generate

[Proto-Scripty] Re: Check a mouse button

2009-12-09 Thread Samuel Lebeau
Hi, This is true except `isXXXClick` are not properties but methods. The correct snippet would then be: Event.observe(element, 'mousemove', function(evt) { if(evt.isLeftClick()) alert('left button clicked'); if(evt.isMiddleClick()) alert('middle button clicked'); if(evt.isRightClick())

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

2009-12-09 Thread Frédéric
On mercredi 09 décembre 2009, david wrote: When observing an event with: Event.observe('mousemove',function(evt){ if(evt.isLeftClick) alert('left button clicked'); if(evt.isMiddleClick) alert('middle button clicked'); if(evt.isRightClick) alert('right button clicked'); }) there is

Re: [Proto-Scripty] Progressive update messages from single request

2009-12-09 Thread Walter Lee Davis
I would do this with chained onSuccess handlers. Each one would trigger a new request to a different endpoint, carrying some token to identify the visitor. $('button').observe('click',function(evt){ //do your lookup new Ajax.Request('lookup.php',{

[Proto-Scripty] Event ordering for cross domain frames

2009-12-09 Thread Sumit
Hi, So i finally came up with protoype based implementation for crossdomain iframe communication based on Julien's example as can be seen live in http://www.julienlecomte.net/blogfiles/cross-frame/ For quick reference, lets say an iframe from domain B is hosted on main site from domain A. In

[Proto-Scripty] Re: Custom events with iframes

2009-12-09 Thread Sumit
Hi David, It did work finally though i'm facing a different issue now. Posting a new thread on that problem. Please have a look at http://groups.google.com/group/prototype-scriptaculous/t/e69e90a8b84987f4 Thanks again for your response. -Sumit On Dec 9, 11:49 am, Sumit skbrnwl-...@yahoo.com

Re: [Proto-Scripty] Re: Include scripts

2009-12-09 Thread Rick Waldron
Something I came across in my Twitter feed... LABjs On Wed, Dec 9, 2009 at 6:54 AM, Frédéric f...@gbiloba.org wrote: Le mercredi 9 décembre 2009 11:25, T.J. Crowder a écrit : Your best bet for something like that is to have a build process that combines the scripts (and then minifies

[Proto-Scripty] Re: Include scripts

2009-12-09 Thread Tobie Langel
Prototype's using Sprockets[1] for this. You might want to give it a spin. Best, Tobie [1] http://getsprockets.org/ -- 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

[Proto-Scripty] Re: Progressive update messages from single request

2009-12-09 Thread joe t.
Thanks for the response Walter. i can see where you're going with that, but in those successively created new Ajax.Request calls, it's generating a new request to the server, which runs the server-side routine from the beginning, right? In my concept, the first call commands the server to run all

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

[Proto-Scripty] Re: Check a mouse button

2009-12-09 Thread david
Hi Samuel, Thanks to point my mistake. It's effectivelly a method and not a property. Sorry frédéric. -- david On 9 déc, 18:35, Frédéric f...@gbiloba.org wrote: On mercredi 09 décembre 2009, david wrote: When observing an event with: Event.observe('mousemove',function(evt){