1 2 Previous Next 16 Replies Latest reply on Dec 24, 2008 5:49 PM by alin.heyoulin.qq.com Go to original post
      • 15. Re: Remoting Callback

        I'm having the same issue, and have also followed all the directions in the documentation, the sole exception being that I had to add the @WebRemote annotation to the implementation, in addition to the local interface.

        • 16. Re: Remoting Callback
          alin.heyoulin.qq.com
          see JBSEAM-3459=>https://jira.jboss.org/jira/browse/JBSEAM-3459
          
          change remote.js 
          
          window.setTimeout(function() {
              asyncReq.onreadystatechange = function() {
              if (rcb) rcb(asyncReq, callback);     
              }
           }, 0);
          
          to
          
          //window.setTimeout(function() {
              asyncReq.onreadystatechange = function() {
              if (rcb) rcb(asyncReq, callback);     
              }
            //}, 0);
          
          or
          
          window.setTimeout(function() { 
            asyncReq.onreadystatechange = function() { 
            if (rcb) rcb(asyncReq, callback); 
            }; 
            asyncReq.send(envelope); 
          }, 0); 
          

          1 2 Previous Next