Todd Ross wrote:
> Do you have a live example?  It's going to be your fastest (and,
> possibly only) route to a solution.
> 
> Todd

yeah here's an example..

http://labs.gi-tools.com/hat_trick/

login info:

username: demo
password: demo

once your logged in click on "Pick-Up Depot | Add a File"
in the client code box you can try "FA" then choose "FAME" from the 
autocomplete.

if you look at it right away it may be a little funky because i'm 
currently working on it

right now (if you look at the JS) i'm tricking it to get all my form 
information from the JS created inputs, i have it so that (lets say you 
click on a check box) it will put the value into an array so that if you 
uncheck the checkbox it will remove it from the array, then after the 
array is processed it puts all the values of the checkboxes into a 
serialized string and makes that the value of a hidden input that's not 
created by JS.

this idea works great, IF i didn't need a comments box, and all the 
lower checkboxes for EACH file that's choosen for upload!

if you submit you'll see a var_dump() of the POST

if you use the FF extenstion "Rendered source" you can see that my JS 
build the form as a 100% valid form, so i don't know what the deal is. 
theres no JS errors or anything either.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to