On Jan 21, 2009, at 8:26 AM, Kumar Saurav wrote:

>
> Hi All
> I have to update more than a single DIV through form_remote_tag .
> I am posting my code .
> In rhtml page
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
>
> <%= form_remote_tag({:url=>{:controller=>'image_builders', :action
> =>'image_creation'}, :update =>'photo',
> :html=>{:onsubmit=>'UrlGeneration(this)'}})%>

First, you don't want to pass an :update option to form_remote_tag.   
Then you want to start reading about update_page here:

http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001436

Basically you'll return some javascript which will do whatever you  
want... updating divs, hiding stuff, replacing other stuff, etc...

-philip

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to