[email protected] wrote:
> On 17 Mar., 07:02, Sudhi Kulkarni <[email protected]>
> wrote:
>> 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?
>
> def add_text_link(name)
> link_to_function name do |page|
> page[:text_area] << "This is new line"
> end
> end
>
> --
> Cheers,
> David Knorr
> http://twitter.com/rubyguy
Hi David,
I tried this but it does not work. For the text area update to work with
IE for a single line I had to do
link_to_function name do |page|
page[:text_area].value = "Hello world"
end
Please note the .value that I use, without using .value it does not work
... so for appending I tried
page[:text_area].value << "This is new line"
This also did not work. Need further help...
Thanks,
Sudhindra
--
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
-~----------~----~----~----~------~----~------~--~---