Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 22, 2011 @ 10:13
    Fuji Kusaka
    0

    Loading a tab from another page

    Hi guys,

    Has anyone of you ever work on loading a tab content from a external page.

    Just to get it clear, lets say on page InnerText.aspx i have a tab container and by default tab 1 is active (open) while the tab 2 and tab 3 arent. I can either choose to click and load the content of tab 2 within the same page.

    Now what am looking for is a possible way of being able to open tab 2 after clicking  on  a link on homepage just like an anchor link would normally do.

    I have already link my cookie.js but am not sure on how to get this to work. i tried to add the id of the link but still tab1 is showing up

    InnerText.aspx?id=tab2 

    Any advise please?

    //fuji

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Jul 22, 2011 @ 15:49
    Sebastiaan Janssen
    0

    I don't really know how that would work in asp.net, but there's plenty of ways to do this using jQuery and hash in your url. For example , this opens on the second tab: http://jqueryui.com/demos/tabs/#tabs-2 (note the #tabs-2 hash in the URL).

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 22, 2011 @ 19:21
    Fuji Kusaka
    0

    Yes finally got it working with a jquery and getting the tab to open.  But thanks Sebastiaan for the url....

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies