[Proto-Scripty] Prototype 1.7rc3 bug with Chrome sending ajax request twice and Opera even 3 times

2010-11-10 Thread Rauan Maemirov
I'm using the latest RC3. Chrome sends ajax request twice, and Opera - even 3 times. Chrome 6.0.742.63, Opera 10.63 - both on ubuntu linux, but on windows results are the same. Here's code: ... this.options.comm_send.observe('click', this.sendComment.bindAsEventListener(this)); //binding onclick

[Proto-Scripty] Extending Event object with custom events

2008-12-10 Thread Rauan Maemirov
Hi list. I'm trying to extend event object. Let's say that i want to observe 'custom:myevent' event. How should I name it? Object.extend(Event, (function(){ return { custom_myevent: function(element, eventName, rules){ //some stuff /* i could

[Proto-Scripty] Re: Extending Event object with custom events

2008-12-10 Thread Rauan Maemirov
Sorry, very stupid question. I found. On Dec 10, 7:25 pm, Rauan Maemirov <[EMAIL PROTECTED]> wrote: > Hi list. I'm trying to extend event object. > > Let's say that i want to observe 'custom:myevent' event. > > How should I name it? > >

[Proto-Scripty] Opera Ctrl + click observing

2008-12-12 Thread Rauan Maemirov
Hi list. I'm trying to prevent Opera's image save dialog when clicking Ctrl + mouseclick. e.stop() doesn't help. It's just don't get to observer handler. Does anybody have workaround for this? --~--~-~--~~~---~--~~ You received this message because you are subscribe

[Proto-Scripty] Re: Opera Ctrl + click observing

2008-12-12 Thread Rauan Maemirov
t; > Can you post a *minimalist* example demonstrating the problem to > Pastie?http://pastie.org > -- > T.J. Crowder > tj / crowder software / com > > On Dec 12, 9:57 am, Rauan Maemirov wrote: > > > Hi list. I'm trying to prevent Opera's image save dialog when

[Proto-Scripty] dom:loaded observing question

2008-12-12 Thread Rauan Maemirov
I'm loading all my scripts almost at the bottom of html and right after them observing 'dom:loaded' event. But it initializes only when all content is loaded (including all images). Is it okay? How can i avoid that waiting all images loading? --~--~-~--~~~---~--~~ Y

[Proto-Scripty] Re: dom:loaded observing question

2008-12-12 Thread Rauan Maemirov
is   > visible. Depending on what else you have going on in the way of   > external scripts, you may need to move them up before that point, but   > you should be able to do all sorts of things before the page becomes   > fully visible. > > Walter > > On Dec 12,

[Proto-Scripty] Re: How to display searched charaacters in autocomplete in Bold

2008-09-10 Thread Rauan Maemirov
Why not to do it on your own? E.g. smth like this? var st = result.toLowerCase().indexOf(keyword.toLowerCase()); if (st != -1) { var output = result.substring(0, st) + '' + result.substring(st, st + keyword.length) + '' + result.substring(st + keyword.length);

[Proto-Scripty] delegating the event on document

2008-09-18 Thread Rauan Maemirov
It's very simple to do for some html object as ancestor, but not for whole body. What I'm doing wrong? $(document.body).observe('focus', function(e) { if (!(elem = e.findElement('a'))) return; elem.blur(); }); The main aim is to avoid effect of "wrapping the link

[Proto-Scripty] Re: delegating the event on document

2008-09-18 Thread Rauan Maemirov
t; better, as you want to really observe each link, not the whole body. I > mean, the first example is saying, "Observe a focus to the body". > That's not really helping at all with the focus of any specific link, > if you see what I mean. > > On Sep 18, 11:51 am, Rauan

[Proto-Scripty] Re: delegating the event on document

2008-09-18 Thread Rauan Maemirov
ocus event instead of the > click event works. > > -- > david > > On 18 sep, 13:15, Rauan Maemirov <[EMAIL PROTECTED]> wrote: > > > I'm using 2nd example. Just thought, that 1st would be more > > elegant. :)) > > But if I'll add link dynamica

[Proto-Scripty] Re: radio buttons?

2008-09-29 Thread Rauan Maemirov
First result in google search http://xavisys.com/2007/03/using-prototype-javascript-to-get-the-value-of-a-radio-group/ I had similar problem earlier. On Sep 29, 6:21 pm, davidascher <[EMAIL PROTECTED]> wrote: > I am new to this and trying to find my way into this the old-fashioned > - by modify

[Proto-Scripty] Re: radio buttons?

2008-09-30 Thread Rauan Maemirov
Just to make things clear, it's not my post. :) U could use events delegation for observing multiple radio buttons. Take a look at Christophe Porteneuve's presentation from @media Ajax. It's described very good there. On Sep 29, 8:26 pm, davidascher <[EMAIL PROTECTED]> wrote: > I had already see