Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8960931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:46:14+00:00 2026-06-15T15:46:14+00:00

I have researched the existing posts on SO for this topic and none seems

  • 0

I have researched the existing posts on SO for this topic and none seems to have a satisfying answer.

I am trying to achieve a tab behavior that’s like Chrome’s in ASP.Net MVC3, specifically the tabs will have the following behaviors:

  1. Be dragged out and standalone as a draggable div on page. I’m thinking of using jQuery dialog with iFrame. Need help/suggestion on how to make it look like a tab.
  2. Once minimized, go back as a tab in the existing tab container

point number 2 is probably easy to achieve – I just hide the div and reconstruct the tabs, but has anyone done #1 and/or can help point a starting direction for me?

Each tab corresponding to a partial view (mvc)/user control(web form).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:46:15+00:00Added an answer on June 15, 2026 at 3:46 pm

    Thanks everybody for your help! I ended up doing the followings:

    • Styled an unordered list (ul) as tabs
    • Made each list item (li) draggable
    • On the onstop event of the li, open a dialog (with an iframe) at the current mouse position.
    • Set the src attribute of the iframe to the tab content.

    Code snippets below:

    $('li').draggable({
                iframeFix: true,
                stop: function (event) {
                    var title = //give a title
                    var newId = //create a unique id
    
                    $('#draggableTabsContainer').append('<div id="' + newId + '"></div>');
    
                    var x = $(this).position().left;
                    var y = $(this).position().top;
    
                    $('#' + newId).dialog({
                        iframe: true,
                        autoOpen: false,
                        width: 700,
                        height: 700
                    });
    
                    $('#' + newId).append($("<iframe id='frm" + newId + "' class='tab-iframe'/>")).dialog('open');
    
                    var url = $(this).find('a.tab').data('src');
    
                    $('#frm' + newId).attr('src', url);
    
                    $('#' + newId).dialog({ position: [x, y], 'title': title });
    
    
                    $(this).remove();
    
                }
            });
    

    HTML of the ul/li:

    <ul id="tablist">
            <li><a class="tab" href="#" data-src="controller_name/view_name1"><b>View 1</b></a></li>
            <li><a class="tab" href="#" data-src="controller_name/view_name2"><b>View 2</b></a></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have researched this topic for months now with no success. Many posts say
I have researched enough on this topic sans any luck :-( My requirement is
I have researched this for a few hours and I am kind of frustrated.
I have researched and researched and I am trying to use jquery to refresh
I have this existing environment: 1) ASP.NET 3.5 web application 2) forms authentication with
We have an existing java-based heavyweight project that needed an interactive script interpreter. After
I have an existing CakePHP that runs on a LAMP environment and need to
I have researched a ton of posts regarding Core Data on background threads, and
I have some legacy code that I am now trying to re-use under Spring.
I have a few apps that I am trying to develop a reusable URL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.