2,:class => 'xstyle',:id => name %> >>> this code is used to pass the value of txtwinentry1 (with 6 values) to controller "winningentry", :url => { :action => "checkrow1" 开发者_Go百科 }, :with => "'xid1='+$F('winid1')+'&xrange1='+$F('winrange1')+'&xcount1='+ $F('wincount1') +'&xdesc1='+$F('windesc1')+'&xuser1='+$F('txtuser1')+ '&xwinentry1='+ $F('txtwinentry1')")%>this code is used to generate 6 empty boxes on thesame row
....given the codes above, no values passed from &xwinentry1='+ $F('txtwinentry1') to the controller.
Any information or suggestion to help me solve the problem will be very much appreciated.
Thank you very much.
Your code is a little bit complicated to understand and I think there are better ways to do what you're trying to (for example, using the form.serialize that is default to the rails remote_form_for: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M002178).
Any way, I could notice that when you're generating the 6 text boxes, you concatenate "txtwinetry1" with the counter, witch gives you something like "txtwinetry11", "txtwinetry12", ... That means that your supposed to do something like '&xwinentry1='+ $F('txtwinentry11')") in your button_to_remote function.
精彩评论