Hi,

0.7.3
IE 6

I am trying to make "Automatic client configuration" to set the backend
Server Url for my RPC based application. I followed the steps exactly as
described in the manual.

When I type http://localhost:8080/myService, I see .qxrpc file in IE cached
files. The RpcServlet is setting the server settings correctly . The file
contents appear as (for readability indentation is appied, otherwise it is a
single line)

if (!qx || !qx.core || !qx.core.ServerSettings) 
{
  qx.OO.define("qx.core.ServerSettings");
}

qx.core.ServerSettings.serverPathPrefix = "http://localhost:8080/myService";;
qx.core.ServerSettings.serverPathSuffix = ";
jsessionid=971152D08A181C80EB290B748F07E1F3";
qx.core.ServerSettings.sessionTimeoutInSeconds = 1800;
qx.core.ServerSettings.lastSessionRefresh = (new Date()).getTime();


The problem is, qx.core.ServerSettings is still not accessible in other
scripts.
E.g., 
makeServerURL : function(instanceId)
    {
      var retVal = null;

      alert("-->"+qx.core.ServerSettings); <---- is undefined 
      if (qx.core.ServerSettings)
      {
        retVal =
          qx.core.ServerSettings.serverPathPrefix +
          "/.qxrpc" +
          qx.core.ServerSettings.serverPathSuffix;

        if (instanceId != null)
        {
          retVal += "?instanceId=" + instanceId;
        }
      }

      return retVal;
    }

MyRemoteTable.js
_loadRowCount: function ()
{
   alert(qx.core.ServerSettings); <--- displays undefined                    
   var rpc = new qx.io.remote.Rpc(qx.io.remote.Rpc.makeServerURL(),
"RpcService"); 
 //var rpc = new qx.io.remote.Rpc("http://localhost:8080/myService/.qxrpc";,
"RpcService");
         
    -------------------------
    ------------------------
}

My Rpc requests fail with null Rpc Url exception in IE 6. In FF, the 1st
page fails with 1 error message saying 'qx is not defined' on .qxrpc line 1.
Everything works perfectly in source and build mode with cross-domains and
public referrer. I have to restrict cross-domain attacks.

Can somebody help me? Do you think the .qxrpc contents are 0.6 style and
breaking in 0.7.3? I tried  qx.Class.define("qx.core.ServerSettings")
instead of  qx.OO.define("qx.core.ServerSettings"). still no luck.

Thanks.
Kanugula.



Thanks.
Kanugula.
-- 
View this message in context: 
http://www.nabble.com/qx.core.ServerSettings-exists-but-not-available-to-others-tp15312344p15312344.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to