user838359
user838359

Reputation: 173

loading aspx page in classic asp in jquery

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

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 190907

Include JQuery.

You also have to wait for the DOM to load.

wrap it with

$(function() {
 // your code here.
});

Upvotes: 1

Related Questions