This question is locked. New answers and comments are not allowed.
I am using MVC3 to populate a view, and the PanelBar collapses / expands as expected.
A timer has been added to rip out the old div containing the panelBar and replace it with a new one...
window.setInterval(handleEvent, 5000);
function callbackFunction() {
alert('Reached');
$('#PanelBar').tPanelBar({expandMode:1});
}
function handleEvent() {
var theUrl = "@Url.Action("Nav","Nav")";
$('#PanelBar').load(theUrl,callbackFunction);
}
But for some reason, it's no longer responding to collapse / expand clicks. What am I missing?
Thanks,
Rob.
A timer has been added to rip out the old div containing the panelBar and replace it with a new one...
window.setInterval(handleEvent, 5000);
function callbackFunction() {
alert('Reached');
$('#PanelBar').tPanelBar({expandMode:1});
}
function handleEvent() {
var theUrl = "@Url.Action("Nav","Nav")";
$('#PanelBar').load(theUrl,callbackFunction);
}
But for some reason, it's no longer responding to collapse / expand clicks. What am I missing?
Thanks,
Rob.