The problem I'm facing is that the from_remote_tag just inserts the
/ticket/status.rhtml text into the 'statdiv' div each time instead of
updating it.
It does not clear the 'statdiv' each time "View Status" button is
pressed.So if there is text from the previous from submit in 'statdiv',
it remains as it is and new text is inserted above it into the
'statdiv'.
What I want is that the 'statdiv' should be cleared each time of its old
text.
Is from_remote_tag not the right option for this???
Please help.
Thank you.
Hey thank you so much for your solution but I got it working by:
<% form_remote_tag(:url => { :controller=>:ticket,:action => :status
},:update=>"statdiv") do %>
What I needed to do is to specify the :url before the :update...
Thanks anyways.