render :update do |page|
page.replace_html 'chat_area', :partial => 'chat_area', :object
=> [@chats, @user] if @js_update
end
I believe this is expecting to find a div with id chat_area to
replace. I do not see this div in the code below, though I may be
just not be seeing it.
I believe this is expecting to find a div with id chat_area to
replace. I do not see this div in the code below, though I may be
just not be seeing it.
Colin
Following div is present on my index.rhtml
<%= render :partial=>'chat_area' %>
I don’t know what is the problem with this div or partial’s content
while using same technique i am updating my other div’s
I find it out why it happens because I didn’t close div above the
“chat_area” properly. the only thing i did isclose the div and it works
like a magic, neways thanks to all
I suggest installing the html validator add-in to Firefox and that
will check the html of your pages as you develop them. This would
have shown your missing /div immediately.
Alternatively you can paste the html of the page into the w3c html
validator for checking but this is much less convenient.
I find it out why it happens because I didn’t close div above the
“chat_area” properly. the only thing i did isclose the div and it works
like a magic, neways thanks to all
Reagrds,
Salil G.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.