WelcomeForumsCommunityTabs and opening URL's

Wijmo Team Member
dzangger posted on May 11, 2012 at 8:55 pm link

I like the idea of the tabs and being able to add a new tab with a URL as the parameter which got me thinking. Suppose I have a page called ShowDetails.aspx and I can pass through the URL a ProductId parameter. And on this page, I have a grid that will show the details based on the product id passed in. If I opened 4 tabs, passing in ShowDetails.aspx?ProductID=1, ShowDetails.aspx?ProductID=2, etc, it seems that the grid would get messed up after page 1 because of the name on the grid. Is there a way around this?

Thanks

Wijmo Team Member
jasons posted on May 18, 2012 at 3:38 am link

If need to displaying the content on external url, you have to add an iFrame to the new tab content. Like below:

var $tabs = $(‘#tabs’).wijtabs({
				tabTemplate: ‘
  • #{label} Remove Tab
  • ‘, add: function (event, ui) { var $iframe = $(‘‘).attr(‘src’, ‘http://www.microsoft.com&#8217 ;) ; $(ui.panel).append($iframe); } });
    Answer
    Wijmo Team Member
    Jeff Whitty posted on August 9, 2012 at 12:20 pm link

    Alternatively, include the ProductID in your grid so it’s always unique

    Answer

    This topic has 3 voices, contains 2 replies, and was last updated by  Jeff Whitty 289 days ago.

    You must be logged in to reply to this topic.