For a typical AJAX request to the server, I associate the ajaxStart and ajaxStop events with opening and closing the modal jQueryUI dialog box. However, I have another use case when there are 1 or more divs (usually 5 partitions) that contain fairly large tables displaying rows of data retrieved from the database. I noticed a significant lag when switching the display properties of the CSS section (shown below).
<span id="SECTION_1_collapse">[+/-]</span><br />
<div id="SECTION_1">
<table>
</table>
</div>
<span id="SECTION_2_collapse">[+/-]</span><br />
<div id="SECTION_2">
<table>
</table>
</div>
...
...
...
Is it possible or has the modal jQueryUI dialog box ever been displayed using the .toggle () method? In this case, span elements with id = "SECTION__collapse" are used to discard div elements with id = "SECTION _".
Thanks in advance.
EDIT:
. . .toggle(). - click, , , . jQuery .
, ..
$('#SECTION_1_collapse').click(function(){
$('#wait_dialog').dialog("open");
$('#SECTION_1').toggle('slow', function(){
$('#wait_dialog').dialog("close");
});
});