Hi Thank You a lot.
I took the first aproach and filled the div with a partial initially
with (remote_form_for)
in create I call a format.js with :
file : create.js.rjs
page.replace_html :constraintCont, " "
page.insert_html :bottom, :constraintCont,:partial => "list", :object =>
@constraint
Now the next step (I'll do this weekend) is to call the form partial
again.
(I hope it works with an ajax Button)
Erhard
Mark Reginald James wrote:
> Erhard Karger wrote:
>> <div id = 'cont'>
>> {:action => :dispatch, :order_id => @order}) %>
>> render :partial => "addForm"
>>
>> Erhard
>
> Erhard, if you only want to fill the div when the page is initially
> rendered, just make dispatch a helper function, and call it inside
> the div.
>
> If instead you want to fill the div based on some unstated
> browser event, place a call to the remote_function helper inside
> a (template-processed) JavaScript function or a tag event property:
>
> http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001635
>
>
> --
> Rails Wheels - Find Plugins, List & Sell Plugins -
> http://railswheels.com
--
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
-~----------~----~----~----~------~----~------~--~---