如何在另一页中调用一页的DIV [英] How to call the DIV of one page in another Page

查看:205
本文介绍了如何在另一页中调用一页的DIV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用JQuery重定向到另一个页面.我需要在重定向页面的div id ="maincontent"上显示重定向页面的内容.目前,我正在同一页中显示它.



I''m using JQuery to redirect to another page. I need to show the contents of redirected page on the div id="maincontent" of redirected page. Currently I am showing it in the same page.

<script language ="javascript" >
   function openpage(pagename) {
            $("#maincontent").load(pagename + ".aspx #maincontent", function() {
       });
    }
    </script>
  <div id="mainremoved" style="width:100%"> This is Home content </div>



如何在另一个页面中调用一个Div并在调用页面中显示内容.



How to call a Div of one page in another and display the contents in the calling page.

推荐答案

(#maincontent").load(pagename +".aspx #maincontent,function(){ }); } < /script > < div =" mainremoved" 样式 宽度:100 %" < >
("#maincontent").load(pagename + ".aspx #maincontent", function() { }); } </script> <div id="mainremoved" style="width:100%"> This is Home content </div>



如何在一个页面的另一个页面中调用Div,并在调用页面中显示内容.



How to call a Div of one page in another and display the contents in the calling page.


This[^] may help.


您一次又一次地问了这个问题,但是一次又一次给了您相同的结果.重新发布确实无济于事.您是否尝试过任何可以找到的东西,因为Dalek Dave的链接对我而言有效?可能是您在此过程中遇到了一些新问题,发布一个新问题对此也没有问题.但是现在看来您根本没有付出任何努力.

这里的另一个链接可能会有所帮助:
Uframe:UpdatePanel和IFRAME的优点 [
You asked this question again and again gave you the same results but now from someone else. Reposting really won''t help. Did you try anything you could find there because Dalek Dave''s link looks valid to me? It might be that you run into some new problems along the way and it would be no problem to post a new question asking about that. But it now looks like you did not put any effort into it at all.

Here another link that might help:
UFrame: goodness of UpdatePanel and IFRAME combined[^]

If you run into any problems or for some reason this won''t work... please post a comment explaining why, including as much useful details as possible. Only then it is possible to work out a solution.

Good luck!


这篇关于如何在另一页中调用一页的DIV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆