Gentlemen, I have a collapsible that when clicked calls an Ajax synchronization and displays the results inside it . I'm having to make it when it's clicked to display that gif while not receiving the Ajax response. The problem is that since it is synchronous collapsible does not open while the function does not come to an end, even if I use the collapsible( "expand" )
function.
See the code:
<div id="expansor" data-role="collapsible" data-collapsed="true">
<h4 id="expansorTitle">Teste.</h4>
<input id="imgCarregando" type="image" src="img/carregando.gif" />
<div id="resultadoAjax"></div>
</div>
$(function() {
$("#expansorTitle").click(
//Meu Ajax síncrono
});
});
Can anyone help me?