Skip to content

Instantly share code, notes, and snippets.

@datashaman
Last active April 18, 2016 10:28
Show Gist options
  • Save datashaman/eaa659c5039611e87bae2034933d0865 to your computer and use it in GitHub Desktop.
Save datashaman/eaa659c5039611e87bae2034933d0865 to your computer and use it in GitHub Desktop.
getScript example
<!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>
$(function() {
$.getScript('orderPicking.js', function() {
HelloWorld();
})
})
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