In my application I used in admin module to expand and collpase
functionality using ajax(link_to_remote) method. It's working fine in
mozilla 3 and below version..
But when I using in mozilla 4 expand functinality was working fine but
collapse are not work, it's just 'wrinkls'.
My code is like below
<tr id="<%= content_element_id %>">
<%= link_to_collapse(:school, content_element_id,
icon_for_backend_collapse) %>
<%= link_to_expand(:school, content_element_id, icon_for_backend_expand)
%>
Have you tried running Firebug in Firefox to check for script errors?
Also copy the complete page html (View > Page Source or similar in
browser) and paste it into the w3c html validator.
Differences between operation in different browsers are often the
result of malformed html or scripts.
Please may I know how we can fix this. Please see my code above and let
me know what error on this..
Note: I am using rails 1.2.3 and ruby 1.8.6
When click expand, it's working fine and when click collapse it's
response is 200 ok in firfox when using firbug,
Why would clicking collapse require sending a request to the server?
Basically we listed schools. If I click particular school then it will
expand(edit the all fields and descriptions and save)
after that i want close this expand by clicking collapse button then it
will close(replacing existing content with new content) and reload that
particular div with updated value.
Sounds like a Javascript selector problem.
Can you post the .rjs file for each partial? "/manage/schools/
expanded_table_row" and "/manage/schools/collapsed_table_row"
is the expanded rjs changing the <tr id="<%= content_element_id %>">
element?