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

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

2006-05-10 Thread Eric Anderson
Quick design question. I am trying to get a better understanding of Prototype. While reading through the source I am stumped by form.js. There is a "Field" object and a "Form.Element". Both object seem to consists of a series of actions that making interacting with form fields easier. My ques