mattmccray

 
« Why is covered, now f… | Home | Rails 0.11.1 »

Woo Hoo!

» Published March 26, 2005 under Rails, Software

rails_logo_remix_small.gifI’m officially a Ruby on Rails contributor! Very cool.

Well, I thought I’d post an update. My changes were approved and merged into Rails’ SVN. So, if you are using the latest-greatest code, then you can add a :position symbol to form_remote_tag or link_to_remote with one of the following string values: before, top, bottom, after, replace (default).

For my next idea… I was thinking of making the AJAX.Updater a little smarter by having it check the type of element it’s updating. It should be able to set the value of a form field, if it’s the update target.

But that leads to some interesting questions. How do we handle different types of input elements? text and textarea are easy — just set the value. What about checkboxes, radiobuttons, and listboxes? It seems like you would be changing the selectable values for radiobuttons and selectboxes… And I have no idea what would change on a checkbox. You could change the value, but why? You could have it selected or not, but why would you need AJAX for this?


3 comments

03.31.05 @ 07:55 Andrew said...
Do you think as the contributor of this feature, that you could add it to the Rails docs in the javascript_helper page? As of now, the description of the :position option doesn’t appear anywhere except on your site!

Nice work with this, it’s very cool, btw.
04.03.05 @ 17:41 M@ said...
Yeah, I guess that might be nice, huh? ;-)
04.12.05 @ 20:30 David Morton said...
patch 933 can now fill in text fields by simply setting the value. I guess it needs more work, but it is already somewhat useful.

No trackbacks

Trackback link:

Please enable javascript to generate a trackback url


You may use Textile, or simple html tags (B,I). Feel free to use Emoticons too. Oh, and please limit yourself to only five links per comment. Anything more and you'll probably get detained by the spam police.