cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taabpr <>
Subject [CForms] using flowscript without continuation
Date Wed, 21 Jul 2004 13:13:20 GMT
Hi all,
I cannot/don't want to use continuation (internet ), but want to use
cforms with js scripts together.
For now I do:
In sitemap:
            <map:match pattern="calc_*">
                <!-- Here we use the HTTP method, GET or POST, to make
distinction between
       the initial form display and a form submit. In both cases the
same publishing
       pipeline will be used, which is below the selector. -->
                <map:select type="request-method">
                    <map:when test="GET">
                        <map:call function="handleForm">
                            <map:parameter name="function" value="sad"/>
                            <map:parameter name="form-definition"
                            <map:parameter name="locale" value="{1}"/>
                    <map:when test="POST">
                        <map:act type="handle-form-submit">
                            <map:parameter name="form-definition"
                            <map:parameter name="attribute-name"
                            <map:parameter name="formhandler"

                            <map:generate type="serverpages"
                            <map:transform type="cinclude"/>

and js is:
function sad(form) {
    var model = form.getModel();
    model.commodity_code = "1111111111";
    form.locale = locale;
    cocoon.request.setAttribute("sad", form.getWidget());
    cocoon.sendPage("sad-display-pipeline_" + locale.toString());

sendPage does not create the continuation.

But the problem appears in any repeaters. I don't know how to handle
requests with action add-delete-row using flowscript. For this I use
standard actions from example (see the part POST), but would prefer js.
Could you tell me how to write cforms with only js scripts without
continuation (would be good the have such example also in samples)?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message