Re: [Rails-spinoffs] Limiting getElementsByClassName to specific nodes and entities

2006-05-30 Thread Nicholas Schlueter
That method looks like it works a little bit different. It looks at all the ol tags and looks for a class of tree on those tags. The prototype version doesn't take any parameters for tag name. It is used like this: var trees = document.getElementsByClassName('tree', parent_dom_element_or_id);

Re: [Rails-spinoffs] migration to rails

2006-05-26 Thread Nicholas Schlueter
This is not a helpful statement and takes away from the usefulness of this list. This is not a war worth fighting. Everyone has their preference. Zealots are stupid and irrational. Please take this discussion to another list. Thanks, Nicholas On 5/26/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:

Re: [Rails-spinoffs] Canceling a specific effect

2006-05-22 Thread Nicholas Schlueter
y is not referring to what you think it is. Greg > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Nicholas Schlueter > Sent: Monday, May 22, 2006 4:33 PM > To: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails

Re: [Rails-spinoffs] Canceling a specific effect

2006-05-22 Thread Nicholas Schlueter
I haven't tested this, but I believe the beforeStart function takes a parameter of the effect. So your beforeStart function should look like: beforeStart: function(effect) { if (menu.currentHeader == element) { effect.cancel(); } } hope this helps Nicholas On 5/22/06, Brice Burgess

Re: [Rails-spinoffs] Ajax.Responders and onComplete

2006-05-16 Thread Nicholas Schlueter
I think the problem is that in your onComplete method you are only expecting one parameter. The parameter is the request which would be the same as the return value from you "new Ajax.Request" call. Instead I think you want the response. So the method should be changed to: onComplete: func

Re: [Rails-spinoffs] Field and Form.Element design question

2006-05-10 Thread Nicholas Schlueter
This is just my opinion, but after looking at the code I would say that Form.element has a lot more to do with the retrieving data (serialize, getValue) and Field has a lot more to do with the state of the field (clear, focus, select, etc). I guess in the end it doesn't really matter because they

Re: [Rails-spinoffs] Problem with autocomplete

2006-05-06 Thread Nicholas Schlueter
I tested http://demo.script.aculo.us/ajax/autocompleter with FF 1.5.0.3 and it worked fine. Is this the page you are getting errors on? On 5/6/06, Paolo Asioli <[EMAIL PROTECTED]> wrote: Hi, Ed ! No need to copy code, if you go to http://script.aculo.us/ with IE you see the autocomplete fi

Re: [Rails-spinoffs] [prototype] Selector class fails on selector strings with spaces

2006-05-01 Thread Nicholas Schlueter
http://encytemedia.com/event-selectors/ On 5/1/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: I just ran across this bug when trying to re-create Ben Nolan's behaviour.js with prototype and was wondering if anyone had fixed it before I went re-inventing the wheel :) Thanks! -Jeremy -- Jeremy K

Re: [Rails-spinoffs] Question about $F()

2006-03-02 Thread Nicholas Schlueter
The $F(id) function returns the value of the form field where the id is the id of the form field. example mark up javascript var fooValue = $F('foo_id'); Now fooValue == "123" should return true. It does different things depending on what type of form field you are asking for the value of (i.e