Chris Habgood wrote:
> Ok, why does this work?
>
> <%= button_to_function "Add Site", remote_function( :url =>
> { :controller => 'addsites', :action => "addsitetomop", :id=>
> @mop}, :with => "'site[comp_#{company.id}]=' + $('site_comp_#
> {company.id}').value + '&site[customer_#{company.id}]=' + $
> ('site_customer_#{company.id}').value ")%>
For the exact reason that I posted. Read my first post again and spot
the differences!
Really, if you can't answer that question yourself after reading this
thread, you need to sharpen your powers of observation before you have
any business programming in *any* language.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---