Title: panel reload constantly when setTitle Post by: crosemffet on November 10, 2016, 03:00:07 AM I have one main.php page with regions:
<div id="p_north" data-options="region:'north',href:'_homeNorth.php'" style="height:80px"></div> <div id="p_south" data-options="region:'south',collapsible:false,loadingMessage:'',href:'_homeSouth.php'" style="height:30px;"></div> <div id="p_central" data-options="region:'center',title:'Main Title',loadingMessage:'',href:'_homeCentral.php'"></div> sometimes, in p_central region, when modify the p_central panel title, causes the region reloads over and over again indefinitely. the code used is: $('#p_central').panel('setTitle', 'my New Title'); any idea...? thanks in advance, additional notes: think I've discovered something new about it: if I try to set 2 things simultaneously on the panel the problem occurs more frequently: $('#p_central').panel({ title: 'zz', tools:[{ iconCls:'icon-next', handler:function(){alert('next');} },{ iconCls:'icon-blank', handler:function(){alert('blank')} }] }) Title: Re: panel reload constantly when setTitle Post by: stworthy on November 10, 2016, 04:52:16 AM If you call $('#p_central').panel({...}), the panel will be re-created again. If you only want to change the title, please call 'setTitle' method instead.
Title: Re: panel reload constantly when setTitle Post by: crosemffet on November 10, 2016, 05:16:40 AM thanks for your reply, i'm not sure about it because I've try different code without success.
can you please post here the exact way to set the title and the custom icons for the panels once created in another page? thanks again, Title: Re: panel reload constantly when setTitle Post by: stworthy on November 10, 2016, 08:49:32 AM Please look at this example http://code.reloado.com/idibas3/edit#html,live
|