简体   繁体   中英

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?

Include JQuery.

You also have to wait for the DOM to load.

wrap it with

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM