Created
June 14, 2010 18:39
-
-
Save ExperimentGarden/438076 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Ajax JavaScript Loader</title> | |
<script type='text/javascript' src='jquery-1.3.2.min.js'></script> | |
<script type='text/javascript'> | |
$.ajax({type: "GET", | |
url: "1_loader.js", | |
success: function(responseText) | |
{ | |
eval(responseText); | |
internalFunction(); //This function defined in the JavaScript code loaded. | |
} | |
}); | |
</script> | |
</head> | |
<body> | |
This is a basic test of loading JavaScript code via AJAX and then running it. | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment