Thursday, 19 September 2013

Jquery UI Tabs -- Content is not refreshed

Jquery UI Tabs -- Content is not refreshed

I am running into a weird behavior and would like to get your inputs. I
spent half of the day figuring this out and trying various options but no
luck.
This is MVC.
I have 2 Tabs.
General and Profile.
On top right of this page I have a dropdown list with list of profiles for
this user.
By default, once user's signin, they are shown the General Tab, and on
click of Profile I make a call to get the profile details like first name,
lastname, etc and display them.
While user is on the profile tab, they can select a different profile from
the dropdownlist on top.
The problem is when a profile is selected from the dropdown I make an ajax
call and then display the contents in this profile tab. Due to some reason
this content never shows up and it always displays the old profile data. I
thought it might be caching the data but the cache is set to false for
both these tabs. The profile tab doesn't refresh at all even though I when
I debug the cshtml file I see latest data coming through but it doesn't
render.
Any help would be appreciated.
Thanks.

No comments:

Post a Comment