On Apr 14, 2004, at 8:22 AM, Uchenna Igwebuike wrote:


I want to define a javascript variable within a flow script that I want
to use within my form event handlers. The only way I can seem to do this
is by making them global variables within the flowscript. Is there an
alternative to this approach as it looks like these global variables are
shared across different continuation?.

In the v2 API you can do this:


        function someForm() {
                var form = new Form ("form.xml");
                var wid = form.getWidget();

                var V;
                .
                .
                .
                wid.someWidget.onClick          // or whatever event...
                        = function() {
                                        // Here I have visibility to V, which is
                                        // local to this continuation
                                };
        }

Does that help?
~mark


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



Reply via email to