From 0bd618e5f6f105cc86de15b2a3bc2709d3729a49 Mon Sep 17 00:00:00 2001 From: totoro Date: Tue, 25 Nov 2014 09:54:47 +0100 Subject: [PATCH] add jq_form_submit which make submit with ajax --- web/jQuery/CXM_jq_form.anubis | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+), 0 deletions(-) create mode 100644 web/jQuery/CXM_jq_form.anubis diff --git a/web/jQuery/CXM_jq_form.anubis b/web/jQuery/CXM_jq_form.anubis new file mode 100644 index 0000000..17ea4cc --- /dev/null +++ b/web/jQuery/CXM_jq_form.anubis @@ -0,0 +1,22 @@ +/* + * Created by PyramIDE. + * User: フランスのトトロ & Julien + * Date: 22/11/2014 + * Time: 18:36 + * © Calexium + */ + + // needs include + // js/cxm/cxm.js + // css/cxm/message.css + +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+");". + -- libgit2 0.21.4