Youth culture killed my dog 6 to 7 of 7 articles Change bannerposts rsscomments rss

Borges gets DHTML   28 Jul 04
[print link all ]
Well, it’s a little bit late, but here it is: live_update.rb.

I think the client code ends up looking very nice.

        r.text_input_with_callback(proc {}) do |r2, text|
        if text.length > 1
            r2.div_named 'bar', `grep -i \"^#{text}\" /usr/share/dict/words`.gsub("\n", "<br/>")
                end
        end

You can see it in action here. I’ll post the code to the Borges mailing list, but it seems pretty dead lately.

I think this idea can pushed much further. I’ll get back to you with anything else I come up with on this front, but you have to promise to do the same.


|

Shuffle up and deal   11 Jul 04
[print link all ]
[1,2,3].sort_by {rand}

from: www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/106044

Also check out: extensions.rubyforge.org/rdoc/index.html


|

 

Copyright © 2024 Leslie A. Hensley