Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Re: RemoteInvoke - Specifying the javascript return function?

  •  24 May 2007, 9:21 AM

    Re: RemoteInvoke - Specifying the javascript return function?

    No, they won't work that way... you will have to chain them together like this:

    // this function starts the chain
    function OpenImage(url){
       WebImageViewer1.RemoteInvoked = OpenImageCallBack;
       WebImageViewer1.RemoteInvoke('Remote_OpenImage', new Array(url));
    }

    function OpenImageCallBack(){
       WebImageViewer1.RemoteInvoked = ResizeWindowCallBack;
       ...
    }

    function ResizeWindowCallBack(){
       WebImageViewer1.RemoteInvoked = function(){};
       ...
    }


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
View Complete Thread