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 :
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
29 matches
Mail list logo