开发者

loading aspx page in classic asp in jquery

开发者 https://www.devze.com 2023-03-30 21:29 出处:网络
i am trying to load a aspx in a classic asp using this code: <%@LANGUAGE=\"VBSCRIPT\" CODEPAGE=\"1252\" %>

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

精彩评论

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