head.js with asp.net masterpage throwing HTML Parsing Error
Im trying to use head.js to load the javascript files in my asp.net page that uses a masterpage (and usercontrols) to ensure they are more self-contained.
but i am getting this error "HTML Parsing Error:Unable to modify the parent container element before the child element is closed" when the page loaded up.
the head.js is referenced in the master page
and basically i have the following script in one of the one contentholder in the actual aspx page.
<script type="text/javascript">
head.js("http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jq开发者_如何转开发uery.js", function() {
alert('load done');
});
</script>
any suggestions?
精彩评论