Reputation: 173
i am trying to load a aspx in a classic asp using this code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252" %>
<html>
<script type="text/javascript">
$('#menu').load('Menuin.aspx', function () {
alert('menu inserted');
});
</script>
<body>
<div id="menu"></div>
</body>
</html>
Can u let me know the mistake i'm doing?
Upvotes: 0
Views: 1104
Reputation: 190907
Include JQuery.
You also have to wait for the DOM to load.
wrap it with
$(function() {
// your code here.
});
Upvotes: 1