/* * Created by PyramIDE. * User: フランスのトトロ & Julien * Date: 22/11/2014 * Time: 18:36 * © David RENÉ */ // needs include // js/cxm/cxm.js // css/cxm/message.css read calexium_lib/web/CXM_making_a_web_site.anubis public define String jq_form_submit ( String form_id, //id of the form ID handled by this function String url, //URL of submit. Becareful without anubis format like "?a=..." which is handled by this function String container_id )= with container_id_str = if length(container_id) > 0 then ", '" + container_id + "'" else "", "CalexiumToolBox.jq_form_submit('" + form_id + "', '" + url + "'"+container_id_str+");". public define String jq_form_submit_and_close ( String dialog_id, String form_id, //id of the form ID handled by this function WEB_Action_Name action, List((String,String)) extra_ops, String call_back //call to execute after )= with dialog_id_str = if length(dialog_id) > 0 then ", '" + dialog_id + "'" else "", with call_back_str = if length(call_back) > 0 then ", "+call_back else "", with url = format_web_action_name(action, extra_ops), "CalexiumToolBox.jq_form_submit_and_close('" + form_id + "', '" + url + "'"+dialog_id_str+call_back_str+");" .