首先我的页面布局,左边是List循环出来的可伸缩面板,然后每个面板里内容是循环下来的子项我在右边添加了一个子项,然后需要左边面板实现刷新
var pp = window.parent.$('#tttt').accordion('getSelected'); 
if (pp){   
    pp.panel('refresh',URL);
}  但是我不知道哪个URL指定什么,如果我指定了页面,那么他刷新后面板里却是整个页面请问我该怎么指定哪个URL
另外我如果不指定哪个URL他不会刷新

解决方案 »

  1.   

    用url返回的内容替换展开的panel的内容。。refresh
    param:href
    Refresh the panel to load remote data. If the 'href' parameter is assigned, it will override the old 'href' property.Code example:// open a panel and then refresh its contents.
    $('#pp').panel('open').panel('refresh');
    // refresh contents with a new URL.
    $('#pp').panel('open').panel('refresh','new_content.php');
      

  2.   


    能具体点么,因为我那个展开的面板内容是list读查出来的,那么我应该给个什么URL呢?
    或者我定义一个action返回那个LIST  然后使用这个URL访问他,可以么?
      

  3.   

    左边菜单生成的时候返回数据多增加url就行了吧。。然后添加click事件获取url加上你的代码
      

  4.   


    能理解,但是不知道具体怎么写
    我现在就是新建了一个页面 内容就是面板里的内容,然后刷新时给定的URL就是这个页面 填充面板
    虽然也能达到局部面板刷新,不过感觉很不科学
    有例子有代码能贴一下么