Note that there are some explanatory texts on larger screens.

plurals
  1. POmvc3 modal dialog with tabs
    primarykey
    data
    text
    <p>I have created a modal dialog in my project and I can load the partialview/view in the modal dialog, problem is on the view I have 3 tabs and each one of them is referencing another partialview. when I click on the tabs it brings the related partialview in the parent page (the page that has the link to the modal dialog) instead of just shifting through the tabs while inside the modal dialog. Anyone have experienced this issue before?</p> <p>I will appreciate any help or similar examples that I can look through.</p> <p>this is my code jQuery(document).ready(function () {</p> <pre><code> $('.trigger').live('click', function (event) { var id = $(this).attr('rel'); var dialogBox = $("&lt;div&gt;"); $(dialogBox).dialog({ autoOpen: false, resizable: true, title: 'Test Modal Dialog', modal: true, show: "blind", hide: "blind", open: function (event, ui) { $(this).load('&lt;%=Url.Action("action1","controllerName")%&gt;'); } }); $(dialogBox).dialog('open'); }); </code></pre> <p>and then I have 4 partial views first one is the action1:</p> <pre><code> &lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;NeboAlertManagement.Models.model&gt;" %&gt; </code></pre> " type="text/javascript"> " type="text/javascript"> " type="text/javascript"> " type="text/javascript"> <pre><code> &lt;div id="tabContainer"&gt; &lt;ul id="menu"&gt; &lt;li&gt;&lt;%= Html.ActionLink("Home", "action2", "controllername")%&gt;&lt;/li&gt; &lt;li&gt;&lt;%= Html.ActionLink("Products", "action3", "controllername")%&gt;&lt;/li&gt; &lt;li&gt;&lt;%= Html.ActionLink("Contact Us", "action4", "controllername")%&gt;&lt;/li&gt; &lt;%-- &lt;li&gt;&lt;%= Html.RenderPartial("action2")%&gt;&lt;/li&gt; &lt;li&gt;&lt;%= Html.RenderPartial("action3")%&gt;&lt;/li&gt; &lt;li&gt;&lt;%= Html.RenderPartial( "action4")%&gt;&lt;/li&gt;--%&gt; &lt;/ul&gt; &lt;/div&gt; &lt;% } %&gt; </code></pre> <p>and the other three partialviews are simple test views but if it helps I can post them!</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload