Last active
April 18, 2016 10:28
-
-
Save datashaman/eaa659c5039611e87bae2034933d0865 to your computer and use it in GitHub Desktop.
getScript example
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>getScript example</title> | |
</head> | |
<body> | |
<div id="panel"></div> | |
<script src="http://code.jquery.com/jquery-2.2.3.min.js"></script> | |
<script src="orderLines.js"></script> | |
</body> | |
</html> |
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
$(function() { | |
$.getScript('orderPicking.js', function() { | |
HelloWorld(); | |
}) | |
}) |
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
function HelloWorld() { | |
$('#panel').html('<h1>hello world!</h1>'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment