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

2008-09-19 Thread Peter De Berdt
On 18 Sep 2008, at 16:30, Ken Snyder wrote: A question, does the focus effect bubble ?? because this work: $(document.body).observe('click', function(e) { var _elem=Event.element(e); alert(_elem.tagName); return; }); but not the same code when you use the focus event instead of

[Proto-Scripty] how to change selectedIndex?

2008-09-19 Thread Cristisor
Hi everyone. I have a small problem with IE. I have a span with the id=birthdate_smarty_select' and inside there are 2 select fields, one for day and the other one for year. I'm trying to set the default for the first value in both select fields like this: $(field).childNodes[1].selectedIndex =

[Proto-Scripty] Re: order of operations

2008-09-19 Thread david
Hi brent, My answer was in case you'll have form without file upload (which is not the case). I don't think there is much more than what you do :) -- david On 18 sep, 19:31, BrentNicholas [EMAIL PROTECTED] wrote: David, The answer Matt had got me started, but I'm wondering if the called

[Proto-Scripty] Re: Opera and 401 response code?

2008-09-19 Thread pcdinh
Sure, I can confirm it. It is definitely a serious bug in Opera 9.5 genki wrote: I've got a same problem. Is it a bug of Opera? On Aug 7, 9:59�am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm wondering if anyone working with Ajax has seen this problem in Opera - I make an Ajax

[Proto-Scripty] Re: Slider with multiple handles does not work in Chrome

2008-09-19 Thread AJ
It fails silently. Btw, the scriptaculous front page is comically misrendered in Chrome as well, but this slider problem is a killer! Thanks, AJ On Sep 16, 1:43 pm, kangax [EMAIL PROTECTED] wrote: On Sep 16, 8:04 am, Fred [EMAIL PROTECTED] wrote: If this can help, It works fine with

[Proto-Scripty] Re: Update dropdown based on another dropdown

2008-09-19 Thread Matt Foster
Have an observer method assigned to the primary selects elements select event. The observer method executes an ajax.request. Have the onSuccess handler rebuild the secondary select element with the options returned from the request. On Sep 19, 4:33 am, jason maina [EMAIL PROTECTED] wrote: Hi

[Proto-Scripty] Re: Move a sortable with javascript

2008-09-19 Thread fintch2309
Matt, Thank you so much reordering the items in the page load with php did the trick thank you very much! Fintch On Sep 18, 1:36 pm, Matt Foster [EMAIL PROTECTED] wrote: Sortable simply applies behaviors to elements.  You're looking to build a different element structure.  Javascript might

[Proto-Scripty] Re: toHTML() doesn't work

2008-09-19 Thread yawnmoth
On Sep 17, 8:14 pm, Justin Perkins [EMAIL PROTECTED] wrote: On Wed, Sep 17, 2008 at 8:00 PM,yawnmoth[EMAIL PROTECTED] wrote: It's Object#toHTML: http://www.prototypejs.org/api/object/tohtml Yes, like Object.toHTML(someObject), not someObject.toHTML(). Like this?:

[Proto-Scripty] How can I stop the observers?

2008-09-19 Thread Cristisor
Hi. I have a small problem: I have an auto suggest that makes a request to the server every time I type a new character. But the url for the request depends on a 'region_value' that can be changed at any time. So if I have my auto suggest is set for a default region and I need to change the

[Proto-Scripty] Re: How can I stop the observers?

2008-09-19 Thread bluezehn
look at api, it's always a good place to look for when you want to... um... refer to the application programming intercace http://www.prototypejs.org/api/event/stopObserving On Sep 19, 9:30 pm, Cristisor [EMAIL PROTECTED] wrote: Hi. I have a small problem: I have an auto suggest that makes a

[Proto-Scripty] Using Ajax.Request not call function OnSuccess

2008-09-19 Thread yourpadre
Hi List I try this 1.- The submit form call mitaller.alta 2.- Popup alert(1) 3.- The data is corrected inserted in database 4.- I expected this.exito run, but not 5.- Popup alert(2) Why exito not run OnSuccess? If change it to: onSuccess: alert(popup) yes work fine. var Taller = Class.create({

[Proto-Scripty] Re: binding to preserve 'this' keyword scope

2008-09-19 Thread Justin Perkins
If you just bind your observer to the current instance of this when you are setting up your observer, everything will work fine. Here is a contrived example to illustrate usage. // this code is untested var Foo = { initialize: function(){ this.message = 'I am who I say I am'; this.body