PDA

View Full Version : Close Tab Before the tab content has been loaded



g_papasavva
24 Sep 2009, 5:37 AM
I have a web application which contains many closable tabs
The issue is that a may close the tab before it finishes loading content which happens asynchronously.
The problem is that if i close the tab, the tab component and all tab subcomponents are removed and since loading of the tab has not finished, i get an error message like
"tabPanel_1234 is undefined"
"tabPanel_1234" is a component and it was removed once i closed the tab.
How could i handle this issue
Thank you.

MiamiCoder
24 Sep 2009, 12:11 PM
What if you try handling the beforeclose event and call abort() on the panel's updater?