Hi all,

I'm getting erros with my Struts 2 web application using Firefox 3.
Everything is ok with others navigators.

With FF3, it shows randomly javascript errors saying my JS var is undefined.

here is a sample of code :
<s:url id="ajaxCtiUrl" namespace="/" action="ctiAjaxAction" />
<s:url id="ajaxMainLayoutUrl" namespace="/" action="ajaxAction" />
<s:url id="ajaxRightsUrl" namespace="/" action="ajaxRightsAction" />
<html>
        <head>
                <script language="JavaScript" type="text/javascript">
            // Dojo configuration
            djConfig = {
                        isDebug: false,
                bindEncoding: "ISO-8859-1"
                  ,baseRelativePath: "struts/dojo/"
                  ,baseScriptUri: "struts/dojo/"
                  ,debugAtAllCosts: false
            };
                </script>
                <script language="JavaScript" type="text/javascript"
src="struts/dojo/dojo.js"></script>
                <script type="text/javascript">
                        //variable pour cti
                        var pop = null;
                        var idUserLocal = '<%=idUserLocal%>';
                        // load dojo RPC
                    dojo.require("dojo.rpc.*");
                    
                    // create service object(proxy) using SMD (generated by the 
json
result)
                    var serviceRights = new 
dojo.rpc.JsonService("${ajaxRightsUrl}");
                    var serviceCti = new dojo.rpc.JsonService("${ajaxCtiUrl}");
                    var serviceAjaxCti = new 
dojo.rpc.JsonService("${ajaxMainLayoutUrl}");
                </script>

Sometimes it says "serviceRights" is undefined, sometimes it's ok.

I am in Struts 2.1.0 snapshot version (June 23th 2008 I guess), jsonplugin
0.30, and I put the /struts files in my webContent repository.

I put dojo debug option, and no error occured :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed in
version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5
DEBUG: RpcService: Attempting to load SMD document from:
/crm/ajaxRightsAction.action?etat=-1&amp;onglet=20
DEBUG: RpcService: Processing returned SMD.
DEBUG: RpcService: Creating Method: this. hasNotificationEditRight ()
DEBUG: RpcService: Successfully created hasNotificationEditRight ()
DEBUG: RpcService: Creating Method: this. hasUserDeleteRightOnObject ()
DEBUG: RpcService: Successfully created hasUserDeleteRightOnObject ()
DEBUG: RpcService: Creating Method: this. hasUserDeleteRightOnTypeObjet ()
DEBUG: RpcService: Successfully created hasUserDeleteRightOnTypeObjet ()
DEBUG: RpcService: Creating Method: this. hasUserEditRightOnObject ()
DEBUG: RpcService: Successfully created hasUserEditRightOnObject ()
DEBUG: RpcService: Creating Method: this. hasUserEditRightOnTypeObjet ()
DEBUG: RpcService: Successfully created hasUserEditRightOnTypeObjet ()
DEBUG: RpcService: Creating Method: this. hasUserReadRightOnObject ()
DEBUG: RpcService: Successfully created hasUserReadRightOnObject ()
DEBUG: RpcService: Creating Method: this. hasUserReadRightOnObjectWithTrId
()
DEBUG: RpcService: Successfully created hasUserReadRightOnObjectWithTrId ()
DEBUG: RpcService: Creating Method: this. hasUserReadRightOnTypeObjet ()
DEBUG: RpcService: Successfully created hasUserReadRightOnTypeObjet ()
DEBUG: RpcService: Dojo RpcService is ready for use.
...
DEBUG: JsonService: JSON-RPC Request:
{"params":[],"method":"getSeparateurNumTel","id":1}
DEBUG: JsonService: JSON-RPC Request:
{"params":["error.authorized.characters"],"method":"getMessage","id":2}
DEBUG: JsonService: JSON-RPC Request:
{"params":[],"method":"getSeparateurNumTel","id":1}
DEBUG: JsonService: JSON-RPC Request:
{"params":["Prospect","7507","4"],"method":"hasUserEditRightOnObject","id":1}

Does someone as problems with Firefox 3 too ?

Do you have any solutions ?

Thanks a lot.

Michaƫl.
-- 
View this message in context: 
http://www.nabble.com/Firefox-3-and-JSON-random-errors-tp20249211p20249211.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to