load_content.anubis
2.77 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*
* Created by PyramIDE.
* User: フランスのトトロ aka (David RENÉ)
* Date: 09/09/2018
* Time: 19:22
* © David RENÉ
*/
read system/convert.anubis
read xlib/web/types/making_a_web_site.anubis
read xlib/web/CXM_web_action.anubis
//read xlib/web/CXM_jquery.anubis
read xlib/web/js_tools.anubis
public define String
load_content
(
String target,
WEB_Action_Name web_action,
List((String,String)) extra_args,
Bool replace
)=
"CalexiumToolBox.ajax_load_content('"+target+"', '"+format_web_action_name(web_action, extra_args)+"', "+to_String(replace)+");"
.
public define String
load_content_JS_String
(
String target,
WEB_Action_Name web_action,
List((String,String)) extra_args,
Bool replace
)=
to_JS_String("CalexiumToolBox.ajax_load_content('"+target+"', "+format_web_action_name_to_js(web_action, extra_args)+", "+to_String(replace)+")")
.
public define String
load_content
(
String target,
WEB_Action_Name web_action,
List((String,String)) extra_args
)=
load_content(target, web_action, extra_args, true)
.
public define String
load_content
(
String target,
WEB_Action_Name web_action,
(String, String) extra_arg
)=
load_content(target, web_action, [extra_arg], true)
.
public define String
load_content
(
String target,
WEB_Action_Name web_action
)=
load_content(target, web_action, [], true)
.
public define String
load_content
(
String target,
WEB_Action_Name web_action,
Bool replace
)=
load_content(target, web_action, [], replace)
.
public define HTML_Partial_Content
load_content_init
(
String target,
WEB_Action_Name web_action,
List((String,String)) extra_args,
Bool replace
)=
partial_content([
js(js_file("js/cxm/cxm.js")),
js_inline(script("text/javascript","$(document).ready(function(){"+load_content(target, web_action, extra_args, replace)+"});"))
],
empty)
.
public define HTML_Partial_Content
load_content_init
(
String target,
WEB_Action_Name web_action,
List((String,String)) extra_args
)=
load_content_init(target, web_action, extra_args, false)
.
public define HTML_Partial_Content
load_content_init
(
String target,
WEB_Action_Name web_action
)=
load_content_init(target, web_action, [], false)
.
public define HTML_Partial_Content
load_content_init
(
String target,
WEB_Action_Name web_action,
Bool replace
)=
load_content_init(target, web_action, [], replace)
.