Why is alert("Test1") being executed, but alert("Test2") is not running?
P.S. I'm currently not utilizing JSON data
.
<script>
$(document).ready(function() {
var param = 10;
$.getJSON(
'modules/mod_scheduler/updateList.php?param'+param,
function(data)
{
alert("Test1");
find_optimal_schedule();
}
);
});
</script>
<script language="javascript">
function find_optimal_schedule() {
alert("Test2");
//...
}
</script>