Hi,
I have this function on jquery:
<script type="text/javascript">
// jQuery Document
$(document).ready(function () {
function loadlog() {
$.get("logs.html', function (data) {
$("#container").html(data);
});
}
loadlog();
});
//start javascript
var whatever= something;
</script>
I want the javascript part to start right AFTER loadlog(); has finished loading all its stuff so #container wont be empty. Most of the time it does but seems like it will often takes too long in reading the external file and it loads it after the javascript part executes I dont want. What can I do?
Thank you.