title: View not refreshing after pop-up triggers Action
body: <p>I’m currently building a mobile application for iPad using MVC4 and Jquery Mobile.  I have a pop-up box that is opened by a jquery function (a function that is triggered by a user click of an item on a page that is sitting inside of an iFrame in the View).  Once the pop-up appears, the user is able to click “Yes” or “No” (as a confirmation) .  If the user clicks “Yes”, I am triggering an Action in my controller in order to do some database work.  Once the work of the Action is completed, I return to the same View where I started, only with new information in my model that I now want displayed.
  Most of this works.</p>
  
  <p>The pop up is triggered correctly, the action is appropriately triggered when “Yes” is clicked, and I can step through the action and see my database work completing correctly and reloading my model with the new information.  I can even step through and see that it’s calling the correct view upon return View, and that the new model information is reaching the HTML helpers.</p>
  
  <p>However, the page in Safari never refreshes.  It’s still the same as before I went to my Action.  I’ve even tried returning another view entirely to see if that would cause it to refresh, but the old page stays there stubbornly.</p>
  
  <p>Here's the relevant code from my view (WOTest):</p>
  
  <pre><code>@section Header 
  {
     &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $('#popupSubmit').bind('click', function () {
                   $.post('@Url.Action("LoadTestData", "WO")', 
                   {CompKey:lblCompKey.innerHTML, ServiceRequestNumber:lblServiceRequestNum.innerHTML}); 
                 });                              
          });
  
  
  
          function newWorkOrder(compkey, comptype, unitid) {
                          $('#popupDialog').popup('open');
                          $('#lblCompKey').html(compkey);
                          $('#lblCompType').html("CompType: " + comptype);
                          $('#lblUnitID').html("Unit ID: " + unitid);
         }
  
  
      &lt;/script&gt;     
  }
  
  @section Content 
  { 
      &lt;div data-role="content" data-theme="c"&gt;
          @using (Html.BeginForm("CreateSRTemp", "WO", FormMethod.Post))
          {           
  
              &lt;div class="ui-grid-c" style="margin-bottom:6px;"&gt;  
                  &lt;div class="ui-block-a" style="width:32%; padding-right:2%;"&gt;  
                      &lt;label id="lblAddress" style="font-weight:bold; color:#28608E;"&gt;Asset Address:&lt;br /&gt;&lt;/label&gt; 
                      @Html.TextBox("AssetAddress", Model.AssetAddress, new Dictionary&lt;string, object&gt;() { 
                      { "readonly", "true" }, { "data-mini", "true" } })  
                  &lt;/div&gt; 
                  &lt;div class="ui-block-b" style="width:22%; padding-right:2%;"&gt; 
                      &lt;label id="lblAsset" style="font-weight:bold; color:#28608E;"&gt;Asset:&lt;br /&gt;&lt;/label&gt;
                      @Html.TextBox("Asset", Model.Asset, new Dictionary&lt;string, object&gt;() { 
                      { "readonly", "true" }, { "data-mini", "true" } }) 
                  &lt;/div&gt; 
                  &lt;div class="ui-block-c" style="width:15%; padding-right:2%;"&gt;  
                      &lt;label id="lblAssetID" style="font-weight:bold; color:#28608E;"&gt;Asset ID:&lt;br /&gt;&lt;/label&gt;
                      @Html.TextBox("AssetID", Model.AssetID, new Dictionary&lt;string, object&gt;() { 
                      { "readonly", "true" }, { "data-mini", "true" } })   
                  &lt;/div&gt; 
                  &lt;div class="ui-block-d" style="width:31%;"&gt;  
                      &lt;label id="lblLogComment" style="font-weight:bold; color:#28608E;"&gt;Log Comment:&lt;br /&gt;&lt;/label&gt;
                      @Html.TextArea("LogComment", new Dictionary&lt;string, object&gt;() { { "data-mini", "true" } })   
                  &lt;/div&gt; 
              &lt;/div&gt;  
              &lt;div class="ui-grid-c"&gt; 
                  &lt;div class="ui-block-a" style="width:25%; margin-top:8px;"&gt;
                      &lt;label id="lblAssignedTo" style="font-weight:bold; color:#28608E;"&gt;Assigned To:&lt;br /&gt;&lt;/label&gt;
                       @Html.DropDownList("assignedTo", Model.listOfActiveEmps, "Select Employee", new { data_mini = "true" }) 
                  &lt;/div&gt; 
                  &lt;div class="ui-block-b" style="width:20%; margin-left:5px; margin-top:8px;"&gt;
                     &lt;label id="lblPriority" style="font-weight:bold; color:#28608E;"&gt;Priority:&lt;br /&gt;&lt;/label&gt; 
                     @Html.DropDownList("priority", Model.listOfPriorities, "Select Priority", new { data_mini = "true" }) 
                  &lt;/div&gt; 
                  &lt;div class="ui-block-c" style="width:25%; margin-top:8px; margin-left:5px;"&gt;
                     &lt;label id="lblWOType" style="font-weight:bold; color:#28608E;"&gt;WO Type:&lt;br /&gt;&lt;/label&gt; 
                     @Html.DropDownList("woType", Model.listOfWOTypes, "Select WO Type", new { data_mini = "true" }) 
                  &lt;/div&gt; 
                  &lt;div id="divCreateButton" class="ui-block-d" style="float:right; margin-top:27px;"&gt;                  
                      &lt;input id="btnCreateWO" data-mini="true" data-theme="b" type="submit" style="height:35px;" value="Create WO" /&gt;               
                  &lt;/div&gt; 
              &lt;/div&gt;
          }      
  
          &lt;div data-role="popup" id="popupDialog" data-overlay-theme="a" data-theme="b" data-dismissible="false"
              style="max-width:416px;" class="ui-corner-all"&gt;
  
                  &lt;div data-role="header" data-theme="a" class="ui-corner-top"&gt;
                      &lt;h1&gt;Asset Selection &lt;label id="lblServiceRequestNum" style="text-align:left;  height:22px; font-size:14px;"&gt;@Model.ServiceRequestNumber&lt;/label&gt; &lt;/h1&gt;
                  &lt;/div&gt; 
                  &lt;div data-role="content" data-theme="a" class="ui-corner-bottom ui-content"&gt;      
                      &lt;h3 class="ui-title" style="text-align:center; height:22px;"&gt;Are you sure?&lt;/h3&gt;                             
                      &lt;label id="lblCompKeyLabel" style="text-align:left;  height:22px; font-size:14px; margin-left:95px;"&gt;Comp Key: &lt;/label&gt;                  
                      &lt;label id="lblCompKey" style="text-align:left;  height:22px; font-size:14px;"&gt;&lt;/label&gt;  
                      &lt;label id="lblCompType" style="text-align:left;  height:22px; font-size:14px; margin-left:95px;"&gt;&lt;/label&gt;                   
                      &lt;a id="popupSubmit" data-role="button" data-inline="true" data-rel="back"
                      data-mini="true" data-theme="b" style="width:150px;" type="submit"&gt;Yes&lt;/a&gt;
                      &lt;a href="#" data-role="button" data-inline="true" data-rel="back" 
                          data-mini="true" data-transition="flow" data-theme="b" style="width:150px;"&gt;No&lt;/a&gt; 
                  &lt;/div&gt; 
  
          &lt;/div&gt;         
  
      &lt;/div&gt;  
      &lt;h5&gt;@ViewBag.Message&lt;/h5&gt;             
  
      &lt;div class="ui-grid-solo"&gt; 
          &lt;div id="mapDiv" class="ui-block-a" style="margin-top:8px; width:100%;"&gt;  
              @{  
                  string xPoint = "?xPoint=" + @Model.XCoordinate;
                  string yPoint = "&amp;yPoint=" + @Model.YCoordinate;
                  string _uri = "/test/Map.htm" + xPoint + yPoint;
                  if (Request.IsLocal)
                      _uri = "../../Map.htm" + xPoint + yPoint; 
                  &lt;iframe id="mapIframe" width="100%" src="@_uri"&gt;&lt;/iframe&gt;
               }  
          &lt;/div&gt; 
      &lt;/div&gt;
  </code></pre>
  
  <p>The pop-up calls this Action, in WOController:</p>
  
  <pre><code>    [HttpPost]
      public ActionResult LoadTestData(string CompKey, string ServiceRequestNumber)
      {
         //Do Database stuff, load model properties with new info
         return View("WOTest", srModel); 
  
       }
  </code></pre>
  
  <p>This Action should return the same view (WOTest) with new info in the model.  I've step through the Action code, it works as expected.  The srModel sent to WOTest at the end has the correct new information...anyone have any ideas why it isn't displayed in WOTest?  It's as if WOTest doesn't refresh at all.</p>
  
  <p>I've tried using ModelState.Clear, but that didn't help.</p>
  
  <p>Any help would be greatly appreciated.  Thank you!</p>