jquery/jquery.xsajax.test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jQuery XS AJAX Plugin Demo</title>
<script type="text/javascript" src="http://jquery.com/src/jquery-latest.pack.js"></script>
<script type="text/javascript" src="jquery.xsajax.js"></script>
</head>
<body>
<h1>jQuery XS AJAX Plugin Demo</h1>
output of script #1: <span id="output1">(none)</span><br/>
output of script #2: <span id="output2">(none)</span>
<p/>
<div id="logbook"></div>
<script type="text/javascript">
$(document).ready(function () {
$('div#logbook').append("1. start sequence<br/>");
$.getScriptXS({ url: "jquery.xsajax.test1.js", cb: function(i) {
$('div#logbook').append("5. loaded script "+i+"<br/>");
}, cb_args: "1" });
$.getScriptXS({ url: "jquery.xsajax.test2.js", cb: function(i) {
$('div#logbook').append("8. loaded script "+i+"<br/>");
}, cb_args: "2" });
$('div#logbook').append("2. end sequence<br/>");
});
</script>
</body>
</html>