I have a simple html page with a div. I am using jQuery to load the contents of an aspx app into the "content" div. Code looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js">
</script>
<script type="text/javascript">
jQuery.noConflict();
</script>
</head>
<body>
<div id="content">
<div id="loading">
<div class="loading-indicator">Loading...</div>
</div>
</div>
</body>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#content").load("default.aspx");
});
</script>
</html>
The problem is default.aspx uses shadowbox and other javascript libraries. When that code tries to execute on default.aspx it acts like the js source files were not loaded. I check in firebug and the js files are there (no 404 or anything). Anyone know what I'm missing? As you can see I used the jQuery noConflict function because I thought the use of $ might be conflicting with the other libraries but no help there...