Note that there are some explanatory texts on larger screens.

plurals
  1. POAJAX Success Function on Server
    primarykey
    data
    text
    <p>This works on my dev machine, but not on a production server. I am trying to update some divs with ajax, but they are not updated, though other parts work fine. I am using IIS 6 on the server. When I debug this code on the server side with firebug, it does not hit any breakpoints I add to the success function.</p> <p>Script:</p> <pre><code>function updateServiceInfo(nodeId) { var id = { id: nodeId }; $.ajax({ url: '/ServiceInfo/ServiceInfoPartial', type: 'GET', data: id, dataType: 'html', success: function (data) { $('#serviceInfoContent').html(data); }, error: function (request, error) { } }); } </code></pre> <p>Controller:</p> <pre><code> public class ServiceInfoController : Controller { public ActionResult ServiceInfo() { return PartialView("ServiceInfo"); } public ActionResult ServiceInfoPartial(string id) { return PartialView("ServiceInfoPartial"); } } </code></pre> <p>Views:</p> <p>serviceinfopartial</p> <pre><code>@model string &lt;p&gt; Немає опису&lt;/p&gt; </code></pre> <p>serviceinfo</p> <pre><code>&lt;div id="serviceInfo"&gt; &lt;div id="ContainerPanel" class="ContainerPanel"&gt; &lt;div id="serviceInfoHeader" class="collapsePanelHeader"&gt; &lt;div id="dvHeaderText" class="HeaderContent"&gt; Опис сервісу&lt;/div&gt; &lt;div id="dvArrow" class="ArrowClose"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="serviceInfoContent" class="serviceInfoContent"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>The response that is returned in the console is</p> <pre><code>GET http://localhost/Managers/GetManagers?nodeId=563344 404 Not Found 42ms </code></pre>
    singulars
    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.
 

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