Re: [Proto-Scripty] Event.on bound to element only

2011-12-20 Thread Guillaume Lepicard
Hi Karl You should have a look to Element.observe With this method you can bind the listener to the object you want The main difference is that you don't have the selector. Nevertheless, thanks to $$ and invoke, you should get what you want Guillaume Le 21 déc. 2011 08:39, "kstubs" a écrit : >

Re: [Proto-Scripty] prototype 1.7 : using 'invoke' method with a Hash

2011-03-11 Thread Guillaume Lepicard
Hi François You should use h.values().invoke("draw"); As specified in the Has#each method, the iterator's first argument is an object with two properties : key and value http://api.prototypejs.org/language/Hash/prototype/each/ On Thu, Mar 10, 2011 at 8:17 PM, Francois wrote: > Hi! > I had proble

Re: [Proto-Scripty] Ajax.Updater only works in IE

2011-03-09 Thread Guillaume Lepicard
Hi, I believe this is because you only gave a name to the "event". $F() is expecting an ID or an element as a parameter. Try putting an id="event" to the select. Guillaume On Wed, Mar 9, 2011 at 9:53 AM, Webhopper wrote: > I create a small form-site for booking events. > After select an even

[Proto-Scripty] Handling form and input events with Event.Handler

2011-03-01 Thread Guillaume Lepicard
Hi all, After some tests, I found that on IE, forms and inputs specific events (change, submit, focus...) can not be handled with the on method nore with Event.Handler using a parent object : $("some_div_id").on("change", "input", doSomething); works fine on Firefox and webkit browsers but not o

[Proto-Scripty] Effect.toggle is by default queue limited

2010-11-25 Thread Guillaume Lepicard
Hi all, I've noticed that if I wanted to use Effect.toggle on multiple elements, I had to specify a queue parameter to override the default scriptaculous behaviour on Effect.toggle (the limit default value is set to 1 for the queue). I was wondering why this limit had been set, if the code coming

Re: [Proto-Scripty] scriptaculous causes body background to fail on safari and chrome

2010-08-17 Thread Guillaume Lepicard
my chrome version is 5.0.375.126 i had the same issue with safari 4 On Tue, Aug 17, 2010 at 5:29 PM, Richard Quadling wrote: > On 17 August 2010 16:13, Guillaume Lepicard > wrote: > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > > http://ww

[Proto-Scripty] scriptaculous causes body background to fail on safari and chrome

2010-08-17 Thread Guillaume Lepicard
Hi all, i have a very simple document: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> BG fail body { background-color: #00; color:#ff; } Hello On chrome and safari, the black background stops right after the h1 hello. On safari, if i as

Re: [Proto-Scripty] Re: Prototype Class, Event Listeners and Referencing Self

2010-07-21 Thread Guillaume Lepicard
com/prototype:tip-you-probably-don-t-need-bindaseventlistener > > -- T.J. :-) > > On Jul 21, 10:18 am, Guillaume Lepicard > wrote: > > Hi, you need to bind the listener function to your object: > > > $('box').addEventListener("click",this.takeAction.bindA

Re: [Proto-Scripty] Prototype Class, Event Listeners and Referencing Self

2010-07-21 Thread Guillaume Lepicard
Hi, you need to bind the listener function to your object: $('box').addEventListener("click",this.takeAction.bindAsEventListener(this),false); more details: http://api.prototypejs.org/language/function/prototype/bindaseventlistener/ On Tue, Jul 20, 2010 at 7:13 PM, Doc Torbin wrote: > I have

Re: [Proto-Scripty] Re: BlindDown issue, won't work

2010-07-19 Thread Guillaume Lepicard
why won't the > BlindDown work, I even tried to make another function and called it > from onClick but nothing.,. I thought scriptaculous issues come > here :P > > On 19 heinä, 16:24, Guillaume Lepicard > wrote: > > hi Silvershaft, > > > > You're

Re: [Proto-Scripty] BlindDown issue, won't work

2010-07-19 Thread Guillaume Lepicard
hi Silvershaft, You're on the wrong list : you're obviously using jQuery... On Mon, Jul 19, 2010 at 3:06 PM, Silvershaft wrote: > Hey I got a little problem with my div what should appear if the login > fails, the alert will show up meaning that the function works, but the > blinddown doesn't wo

Re: [Proto-Scripty] Re: hash serialization problems

2010-05-06 Thread Guillaume Lepicard
hi, The way an hash is serialized in json is the correct way i think, what you want is more an array than an hash... So you could either use an array var a = $A(); a.push({"name00": "value00"}); a.push({"name01": "value01"}); and then serialize this array : Object.toJSON(a); or if it is too much

Re: [Proto-Scripty] Adding new objects from old objects

2010-04-28 Thread Guillaume Lepicard
hi, when you observe Event.observe('button-' + this.id, 'click', this.add); a new anonymous add fucntion is created. To be sure it will be binded to this, Event.observe('button-' + this.id, 'click', this.add.bindAsEventListener(this)); On Wed, Apr 28, 2010 at 1:53 PM, Jangla wrote: > Here's so

Re: [Proto-Scripty] Issue with droppable and an element that has more than one class name

2010-04-28 Thread Guillaume Lepicard
hi, as far as i can remember, the accept option has to be in a selector syntax: try new Draggable ('draggable', {revert: 'failure', accept: '.dropme'}); or Droppables.add(audience-element-0, {accept: '.Social', onDrop: this.dropElement}); On Tue, Apr 27, 2010 at 10:47 PM, Jangla wrote: > If I ha

Re: [Proto-Scripty] script.aculo.us autocomplete on dynamically added form field?

2010-04-08 Thread Guillaume Lepicard
Hi, You should use full dom creation for your new inputs instead of innerHTML, and use prototype for manipulating Events and DOM On Thu, Apr 8, 2010 at 2:04 AM, Albanach wrote: > Hi, > > I have a form where I dynamically add extra fields. > > Here's my example code: > > http://pastie.org/908497

Re: [Proto-Scripty] floating div

2010-04-07 Thread Guillaume Lepicard
Hi martin This is a pure style issue... Try setting your div as positonned absolutely with a z-index Guillaume Le 7 avr. 2010 à 20:37, Martín Marqués a écrit : OK, I know this isn't strictly prototype, but I'll through it here. I have a div with id divsubmit which has an animated gif

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-07 Thread Guillaume Lepicard
ems like the effect would not run - the solution is there directly. > > On 7 Apr., 12:02, Guillaume Lepicard > wrote: > > Yes it is ! > > > > new Effect.Parallel(effects,* {* > > afterFinish: function() { > > search(area,

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-07 Thread Guillaume Lepicard
Debug says, that one ")" is missing after argument > list on position "new.Effect.Parallel(effects, afterFinish:** > function() > > > Cheers! > > > > On 7 Apr., 11:26, Guillaume Lepicard > wrote: > > Hi > > > > How are you calling and d

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-07 Thread Guillaume Lepicard
Hi How are you calling and defining the start function ? directly in your HTML page or through an Ajax Request ? if it is defined through an ajax request, you must use the syntax : var start = function() { ... }; is there some place where we can view the page ? And I've seen a missing dot again

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread Guillaume Lepicard
Hi again, I understand what you want, but the problem this time is that you are dealing with several elements. When calling invoke, it is just as if you were looping on each item of your Enumerable and calling the invoked method for each of them, with all parameters - that is to say with afterFini

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread Guillaume Lepicard
Hi, I guess that you want to fade all items with class solution (you are missing the dot class prefix) and on the afterFinish, you want to run a function that has as third parameter a callback function ? Because the way you had wrote it meant that your owned function *search* returned a function to

Re: [Proto-Scripty] Using effects after AJAX

2010-04-02 Thread Guillaume Lepicard
hi, you have to handle an extra parameter in your getdata function which should be a callback function to call when ajax request is complete. your getdata should then look like : function getdata(whatdata,whatdiv, callBack) { new Ajax.Updater(whatdiv, someURL, { parameters:whatdata, onComp

Re: [Proto-Scripty] Queues & Effects

2010-04-01 Thread Guillaume Lepicard
i would rather use the AjaxUpdater and have a wrapping function over it : function ajaxUpdate(id, url, params, callback) { new Ajax.Updater (id, url, { parameters: params, onComplete: callback }); } then use the afterFinish callbacks of effects with use of curry function methods: $('informat

Re: [Proto-Scripty] How to do this with Function.delay?

2010-03-30 Thread Guillaume Lepicard
hi, you should try Element.morph.delay(0.3, 'frame_index','left:' + origin) On Tue, Mar 30, 2010 at 6:34 PM, Walter Lee Davis wrote: > I have this effect wrapped in a timeout: > > setTimeout(function(){ >var elm = $('frame_index'); >elm.morph('left:' + elm.origin); > },300); > > I rea

Re: [Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Guillaume Lepicard
hi, use the select method of elements : $$('#tbl_Charges .dtl_Tyre, #tbl_Charges .dtl_Repair, #tbl_Charges .dtl_Service, #tbl_Charges .dtl_Blank').each(function(el){ el.select('.rCharge, .rValue, .rDesc').each(...) }); On Mon, Mar 29, 2010 at 5:23 PM, Richard Quadling wrote: > Hi, > > I can use

Re: [Proto-Scripty] Table columns not sorted by Tablekit after AJAX call is added

2010-03-14 Thread Guillaume Lepicard
Hi albert, In the tablekit library, there probably is a listener on window load event that will look for html table tags and perform actions on them. You should perform those actions when ajax updater succeed. Guillaume Le 13 mars 2010 à 17:19, albert kao a écrit : I use the Tablekit

Re: [Proto-Scripty] Ajax.Request - can't get to work in Firefox, Chrome

2010-03-13 Thread Guillaume Lepicard
hi ronen, could it be a browser cache issue ? have you tried clearing cache before running ajax ? On Fri, Mar 12, 2010 at 3:53 PM, Ronen wrote: > I've downloaded the latest prototype (version 1.6.1) and tried to call > a java servlet using Ajax.Request. From IE, it works just fine > (probably b

Re: [Proto-Scripty] multiselect combo plugin

2010-02-22 Thread Guillaume Lepicard
hi, you might want to check http://livepipe.net/control/selectmultiple http://scripteka.com/ On Sun, Feb 21, 2010 at 10:04 PM, termi wrote: > Hi! > > please, is there any multi select combo plugin for prototype > (script.aculo.us) like > > > http://www.erichynds.com/jquery/jquery-multiselect-plu

Re: [Proto-Scripty] Re: Scope problem with prototype

2010-02-18 Thread Guillaume Lepicard
hi, what about: $$(".ddBox").each(function(ddbox){ ddbox.setStyle({height: ddbox.select("ol").invoke('getHeight').max() + "px"); }); On Thu, Feb 18, 2010 at 1:33 PM, huckocs wrote: > Thanks for the effort! > > The code is a much nicer way of replicating what I've done, however > i'm still le