开发者

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.
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜