I’m using the tabs control in jquery ui. I add new tabs dynamically based on some kind of logic with the following code:
$("#div_Tabs").tabs("add", "/Game/PlayGame?matchID=" + result.MatchID, "Play with " + userName);
My problem is that when the user navigates away from the newly created tab, the content of that tab is lost, and when he selects this tab again, everything is loaded back again. I wonder if this reloading can be avoided. I want to load that content only once, when a new tab is created. If this cannot be done, what other alternatives do I have? Thanks in advance.
What about setting the ‘cache’ attribute to TRUE? According to documentation:
The tab is going to have the behaviour that you described only once.