Using checkboxes without a form?

Sure you can do that. You will need a combination of JavaScript, DHTML, AJAX.

You will need AJAX to accomplish #1 requirement to make a remote call to the server. You only need DHTML driven by JavaScript to accomplish #2.

You will need AJAX to accomplish #1 requirement to make a remote call to the server. You only need DHTML driven by JavaScript to accomplish #2.

Thanks! Is there any way to accomplish this using Rails-helpers?

off the top of my head you want something like

check_box_tag('enabled', '1', is_enabled?, :onchange =>
remote_function( :url => {:action => 'checkbox changed'}))

If you don't need server interaction, replace remote_function with
the javascript of your choice. You can use update_page if you want to
generate the javascript via an rjs like syntax rather than writing it
by hand.

Fred

OK, I think this is related to something I'm trying to do....

I have bunch of JSON data that gets loaded onLoad and displayed. I'd like to have a set of checkboxes that I can use to dynamically exclude/ include certain subsets of the data with. I'm sure this should be pretty simple... but I'm new. Could someone point me to any examples, etc.?

thanx, skwasha