CXM_jq_form.anubis
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Created by PyramIDE.
* User: フランスのトトロ & Julien
* Date: 22/11/2014
* Time: 18:36
* © Calexium
*/
// 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+");"
.