Thursday, October 27, 2016

Zurb Foundation Tab not working after Post-deep linking error

Tab's are really great to display different content.
I ran into an issue where i have 3 tabs and 3 different contents inside a div.When i click on Save button after the post the page displays but when you click on other tabs.it will throw deep-linking error.

In order to solve this just add this in the Save button's post method

 $(document).foundation('reflow');



$.post($("#frmSetting").attr('action'), $("#frmSetting").serialize(), function (result) {
                    $('#DataContainer').html(result);
                    $(document).foundation('reflow'); // tab after saving opens other tab
                 
                }, "html");

No comments:

Post a Comment