Load complete is never called
<p>I have this pice of javascript which loads a html file which contains the divs the logic works on. It is a popop window that should be included in multiple pages.</p>

<p>I have used the exact same approach with success elsewhere.</p>

<p>The problem is that the complete method is never called and when I log the browsers interaction with the server, there are no calls placed.</p>

<p>This is the same in IE9 and FF16.</p>

<p>Do you have a hint to bring me further?</p>

<p>TIA :)</p>

<pre><code>function defineEditDocumentWindow(divTag) {
assert($(divTag));
assert(UrlExists('/Documents/EditDocument.htm'));
$(divTag).load('/Documents/EditDocument.htm', null, function (response, status, xhr) {
    alert('hey, we were called');
    if (status == "error") {
        debugger;
    } else {
        debugger;
        var width = 1500;
        var height = 800;

        var initWidgets = function (tab) {
            switch (tab) {
                case 0:
                    break;
                case 1:
                    initializePreview();
                    break;
            }
        };
        $('#jqxTabDocumentEditPreview').jqxTabs({ height: 700, width: 1480, theme: 'classic', initTabContent: initWidgets });
        $('#jqxEditDocumentWindow').jqxWindow({ height: height, maxHeight: height, width: width, maxWidth: width, theme: 'classic', autoOpen: true, isModal: true, animationType: 'none' });

        $('#jqxTabDocumentEditPreview').jqxTabs({ keyboardNavigation: false });
        $('#jqxTabDocumentEditPreview').bind('selected', function (event) {
            initializePreview(event);
        });
    }
});
}
</code></pre>

<p>HTML:</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="T24Portal.Test" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;script type="text/javascript" src="ScriptsExternal/jquery-1.8.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="Scripts/WaitSignUtil.js"&gt;&lt;/script&gt;

    &lt;link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" /&gt;
    &lt;link rel="stylesheet" href="jqwidgets/styles/jqx.classic.css" type="text/css" /&gt;
    &lt;link rel="stylesheet" href="jqwidgets/styles/jqx.classic.css" type="text/css" /&gt;
    &lt;script type="text/javascript" src="/Documents/EditDocument.Main.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="ScriptsExternal/ba-debug.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="ScriptsExternal/json2.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="ScriptsExternal/jquery-1.8.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="jqwidgets/jqx-all.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="ScriptsExternal/showdown.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="/Scripts/AvalonUtil.js"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;
        $(document).ready(function () {
            defineEditDocumentWindow("EditDocumentWindowPlaceHolder");
        });
    &lt;/script&gt;
    &lt;style type="text/css"&gt;

    &lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;
   &lt;div id="EditDocumentWindowPlaceHolder"&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
