You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by vi...@wipro.com on 2005/09/23 15:59:59 UTC

Cocoon forms query with cocoon 2.1.7

Anyone have idea about how the fun variable & fun function in the
fom_system.js working/initialiated?

fom_system.js
>>
>>

FOM_Cocoon.prototype.sendPageAndWait = function(uri, bizData, fun, ttl)
{
    this.sendPage(uri, bizData,
                  new FOM_WebContinuation(new Continuation(),
                                          this.continuation, ttl));
    if (fun) {
        if (!(fun instanceof Function)) {
            throw "Expected a function instead of: " + fun;
        }
        fun();
    }
    FOM_Cocoon.suicide();
}

Can u please explain the same?


Vijay




Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

Re: Cocoon forms query with cocoon 2.1.7

Posted by Leszek Gawron <lg...@mobilebox.pl>.
vijayaraghavan.subramaniam@wipro.com wrote:
> Anyone have idea about how the fun variable & fun function in the 
> fom_system.js working/initialiated?
> 
> fom_system.js
>  >>
>  >>
>  
> FOM_Cocoon.prototype.sendPageAndWait = function(uri, bizData, fun, ttl) {
>     this.sendPage(uri, bizData,
>                   new FOM_WebContinuation(new Continuation(),
>                                           this.continuation, ttl));
>     if (fun) {
>         if (!(fun instanceof Function)) {
>             throw "Expected a function instead of: " + fun;
>         }
>         fun();
>     }
>     FOM_Cocoon.suicide();
> }
>  
> Can u please explain the same?
you mean the syntax?

cocoon.sendPageAndWait( "view.jx", { data: myBean },
                         function() { myBean = null; },
                         3600 );

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org