need to get <browser> working with remote xul
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 20:47:28 +0000 (20:47 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 20:47:28 +0000 (20:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2318 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/opac.js
Open-ILS/xul/staff_client/server/cat/opac.xul

index cdfb805..b0f7c5f 100644 (file)
@@ -36,6 +36,8 @@ cat.opac.prototype = {
                        obj.controller.view.opac_browser = document.getElementById('opac_browser');
 
                        obj.buildProgressListener();
+                       dump('obj.controller.view.opac_browser.addProgressListener = ' 
+                               + obj.controller.view.opac_browser.addProgressListener + '\n');
                        obj.controller.view.opac_browser.addProgressListener(obj.progressListener,
                                        Components.interfaces.nsIWebProgress.NOTIFY_ALL );
 
@@ -69,6 +71,7 @@ cat.opac.prototype = {
                                onStatusChange          : function(){},
                                onSecurityChange        : function(){},
                                onStateChange           : function ( webProgress, request, stateFlags, status) {
+                                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                                        var s = '';
                                        const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
                                        const nsIChannel = Components.interfaces.nsIChannel;
index 1d4fba2..d4f333e 100644 (file)
 
        <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
        <!-- BEHAVIOR -->
-        <script type="text/javascript">var myPackageDir = 'evergreen'; var IAMXUL = true; var g = {};</script>
+        <script type="text/javascript">
+               var myPackageDir = 'evergreen'; var IAMXUL = true; var g = {};
+               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+       </script>
         <scripts id="openils_util_scripts"/>
 
        <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
-
        <script>
        <![CDATA[
                function my_init() {
                        try {
-
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                                if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
                                JSAN.errorLevel = "die"; // none, warn, or die
@@ -39,7 +40,6 @@
                                g.error.sdump('D_TRACE','my_init() for cat_opac.xul');
 
                                g.cgi = new CGI();
-
                                var session = g.cgi.param('session');
                                var url = g.cgi.param('url');
                                if (!url) url = urls.opac;
@@ -53,7 +53,6 @@
                                        } 
                                );
 
-       
                        } catch(E) {
                                var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
                                        "system administrator or software developer the following:\n" + E + '\n';