Hi,
I have a view page where there are 2 forms and each form have fckeditor
textarea. . SO initially both forms will be hidden on page load. When I
click on a link1, the form1 div will be shown and form2 will be hidden and
vice versa. But when I click on link1 the form1 div appears the 2 fck text
editors(one for form1 and another for form2). Please help.
My form1 is given as below.I am using rails 2.3 version.
Form1
<div id="forward-form" style="display:none;">
<% form_for :reminder, :url=>{:id2 =>@new_reminder.id,
:action=>'forward_reminder'},:html=>{:multipart=>true} do |l| %>
<div id="form">
<%= error_messages_for :reminder %>
<div class="label-field-pair">
<label for="subject">Email Id</label>
<div class="text-input-bg"><%= l.text_area :email,
:value=>'',:rows=>3,:cols=>5 %></div>
</div>
<div class="label-field-pair">
<div class="text-area-bg"><%= fckeditor_textarea :reminder,
:body,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %>
</div>
</div>
<div id="submit-button">
<%=submit_tag "#{t('send')}", :class => 'button',
:disable_with => "#{t('please_wait')}" %>
</div>
<% end %>
</div>
</div>
============================
Form2
<div id="reply-form" style="display:none;">
<% form_for :reminder, :url=>{:id2 =>@new_reminder.id,
:action=>'reply_reminder'},:html=>{:multipart=>true} do |l| %>
<div id="form">
<%= error_messages_for :reminder %>
<div class="label-field-pair">
<label for="subject">Email Id</label>
<div class="text-input-bg"><%= l.text_area :email,
:value=>'',:rows=>3,:cols=>5 %></div>
</div>
<div class="label-field-pair">
<div class="text-area-bg"><%= fckeditor_textarea :reminder,
:body,:lang => I18n.locale,:langdir => (rtl? ? 'rtl' : 'ltr') %>
</div>
</div>
<div id="submit-button">
<%=submit_tag "#{t('send')}", :class => 'button',
:disable_with => "#{t('please_wait')}" %>
</div>
<% end %>
</div>
</div>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/1ae69a04-16fa-4cbd-975b-a9123a5ce6a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.