Hi experts,

I am having problem invoking javascript function in Qooxdoo Static member.
I get the error logout() is not a function.

qx.Class.define("dialog.StatusDialog",
{
        statics :
        {                          
             show : function(exc, isSuccess) 
            {
               if (exc["class"] = "RemoteSessionTimeout") {
                     qx.client.Timer.once(
                  function()
                  {
                      this.logout(); //doesn't work
                                logout(); //this is also not working
                               }, this,30);
               }
               else
                //do something 
           }
});

My javascript function logout() is defined in index.html as
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Futures Middle Office</title>
    <script type="text/javascript" src="script/demobrowser.js"></script>
    <script type="text/javascript" src=".qxrpc"></script>
    
    <script type='text/javascript'>
        function logout(){
          alert("called");
        }
   </script>
  </head>
</html>

I am able to call the same function from DemoBrowser.js

So what is the difference? Can't I access it from static members?

Thanks.
Kanugula.
-- 
View this message in context: 
http://www.nabble.com/Accessing-javascript-function-in-Qooxdoo-static-member-tp17284645p17284645.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