Is it possible to make. jquery ajax success, then continue load page's html?
For explain: I need when open the page. fist loading css, js code. then loading near the jquery ajax code, make a stop. stay the jquery ajax data poccess finished, then continue loading the <body> code. show <div id="data"></div> and other html code.
<script type="text/javascript">
$.ajax({
url: "pageb.php",
dataType: "html",
type: 'POST',
data: "value="+ value,
success: function(data){
//stop open page, after data back success, then continue loading the html code.
$("#data").html(data);
}
});
</script>
</head>
<body>
<div id="data"></div>
...
</body>