Ram wrote:
> You dont need an Ajax call for this. RJS is enough.
> in helper
> 
>   def add_text_link(name)
>     link_to_function name do |page|
>       page[:text_area] = "This is new line"
>     end
>   end
> 
> in view
> 
> <%= add_text_link "Insert text into text area using JS" %>
> 
> On Mar 12, 7:18?pm, Sudhi Kulkarni <[email protected]>

Hi Ram,

Thanks for the help... this works but I have another question now what 
if I need to append into the text area instead of replacing the content?

Thanks,
Sudhi
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to