左侧的导航栏是jquery +ajax 读取XML 动态生成的,现在就差 点击节点 在右侧显示内容了
部分代码:
function parseXML() {
debugger
    var title = $(this).attr("Title");
    var link = $(this).attr("Link");
    var descCount = $(this).attr("DescendantCount");    //
    if (parseInt(descCount) > 0) {
        temp += '<li class="sidebarLi"><a href="/">' + title + '</a>';
        //$('<li class="sidebarLi"><a href="/">' + title + '</a></li>').appendTo('.sidebar ul');
        temp += "<ul>";
        $(this).children("TocEntry").each(parseXML);
        temp += "</ul>";
    } else {
        temp += '<li class="sidebarLi"><a href="/">' + title + '</a>';
        //$('<li class="sidebarLi"><a href="/">' + title + '</a></li>').appendTo('.sidebar ul');
    }
    temp += "</li>";
}XML <?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1" DescendantCount="21">
    <TocEntry Title="Role-based administration overview" Link="/Content/Windows/rba_c_overview.htm" ComputedResetPageLayout="true" ComputedFirstTopic="true" DescendantCount="0" />
    <TocEntry Title="Role-based administration workflow" Link="/Content/Windows/rba_t_workflow.htm" ComputedFirstTopic="false" DescendantCount="0" />
    <TocEntry Title="Users" Link="" ComputedFirstTopic="false" DescendantCount="4">
        <TocEntry Title="Adding Management Suite console users" Link="/Content/Windows/rba_c_adding-users.htm" ComputedFirstTopic="false" DescendantCount="0" />
        <TocEntry Title="Add Management Suite console users" Link="/Content/Windows/rba_t_add_users.htm" ComputedFirstTopic="false" DescendantCount="0" />
        <TocEntry Title="Delete users" Link="/Content/Windows/rba_t_delete-users.htm" ComputedFirstTopic="false" DescendantCount="0" />
        <TocEntry Title="Viewing user or group properties" Link="/Content/Windows/rba_h_view-properties.htm" ComputedFirstTopic="false" DescendantCount="0" />
    </TocEntry>
</TocEntry>有个属性是 Link 是 保存每个HTML的路径现在我要实现点击节点 然后找到这个HTML 显示到右侧 这个怎么弄啊???大环境是 ASP.NET MVC 3.0 大牛们帮帮忙,我抗不住了。

解决方案 »

  1.   

    target
    。<head runat="server">
        <title>无标题页</title>
        <frameset   cols="165,*,8" frameborder="no" border="0" framespacing="0">   
          <frame   name="left"   target="left"   src="left.aspx" frameborder="no" scrolling="No" noresize="noresize" border="0" framespacing="0"  >  
          <frame   name="main"   src="index.aspx" target="main"> 
           <frame   name="right"   target="right"   src="right.aspx" frameborder="no" scrolling="No" noresize="noresize" border="0" framespacing="0"  >     
          <noframes>   
          
          </noframes>   
      </frameset>   
    </head>
    导航的时候加入target="main"

    <a href="xxxx.aspx" target="main">TEST</a>
      

  2.   

    子夜大牛 , 有jquery ajax 方面的例子嘛。 不允许用frame
      

  3.   

    右边一个DIV里面放个iframe
    ("divid")[0].src='http://wwww.baidu.com/'
      

  4.   

    用了iframe可以直接用<a href="../*.aspx"></a>来做吧!
      

  5.   

    How to add iframe in MVC?