I have a parent container loading in a child container which has javascript src pointing to a library. When the child is loaded, the src library does not run.
I tried getScript() after callback but this does not have any affect.
The library is a color picker: http://jscolor.com/
Any suggestions please?
parent.html:
<html lang="en-US">
<head>
<meta charset="UTF-8">
<script src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('#rec').load('child.html', function(){
$.getScript("js/jscolor.js");
});
});
</script>
</head>
<body>
<div id='rec'></div>
</body>
</html>
child.html:
<script type="text/javascript" src="js/jscolor.js"></script>
<input class="color" value="66ff00">
child.html?