Hi,

I hava an AjaxImageSubmit inside an AjaxForm. 
When the user clicks on the AjaxImageSubmit, a javascript confirm window pops 
up and I would like to submit the form if and only if the user click "Ok". If 
the user clicks "Cancel" I don't want any kind of submit (not even ajax submit).
For that I have something like this:

        <input jwcid="clear" onclick="javascript: confirm('message');"/> 

where clear is:

    <component id="clear" type="tacos:AjaxImageSubmit">
        <binding name="image" value="asset:imgModificar"/>
        <binding name="listener" value="ognl:modificarGrupo"/>
        <binding name="disabled" value="ognl:true"/>        
    </component>

and the form is defined like this:

    <component id="datosGrupoOrden" type="tacos:AjaxForm" >
               <binding name="updateComponents" value="ognl:{'gruposActuales'}" 
/>
    </component> 

The window pops but when I click Cancel the form still submits. How can I avoid 
this?

Thanks,

Marcos
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
Tacos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to