This question is locked. New answers and comments are not allowed.
I have two tabs, both loaded via LoadContentFrom("action", "controller", new { id = "someId" })
Outside of the tabstrip, I have a dropdown, upon a select of a specific value, I need to clientside-only, reload the tabstrip where the id="newValue" (action and controller are the same, but the id query parameter will change. Basically what's a jQuery way to execute LoadContentFrom of the tabs passing a new id?
Hope someone can help.
Update
I put the tab and everything in the tab in a seperation PartialView and call it like this:
I then have a javascript function that gets called upon change of the dropdown:
However, it does nothing. Then I found this link but unsure how to apply it to my scenario.
Please help out
Outside of the tabstrip, I have a dropdown, upon a select of a specific value, I need to clientside-only, reload the tabstrip where the id="newValue" (action and controller are the same, but the id query parameter will change. Basically what's a jQuery way to execute LoadContentFrom of the tabs passing a new id?
Hope someone can help.
Update
I put the tab and everything in the tab in a seperation PartialView and call it like this:
<div id="TabContainer">@{Html.RenderAction("_MyPartial", "ControllerName", new { id = Model } );}</div>I then have a javascript function that gets called upon change of the dropdown:
function onCampaignsChange(e) {$.get('@Url.Action(@"_Account", @"Brand")', { campaignId: e.value },function(data){$('TabContainer').html(data);}); }However, it does nothing. Then I found this link but unsure how to apply it to my scenario.
Please help out