use a js template. ie, if you are in the update action, create an
update.js.erb and write the js function there
update.js.erb
$(''#div_id'').html(''<%= escape_javascript
render(:partial =>
''partial_name'')%>'')
On Mon, Feb 21, 2011 at 2:08 PM, Srikanth Jeeva
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:
> Hi,
>
> In my Rails application I have used jQuery instead of Prototype.
>
> When I was using prototype I use,
>
> render :update do |page|
> page.replace_html :div_id, :partial => "partial_name"
> end
>
> How can i do this with jQuery?
>
> Thanks in advance,
> Srikanth J
> http://srikanthjeeva.blogspot.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.