Commit 8b1c73d0a94bf27dcdd331455006dd3ae13aea76

Authored by totoro
1 parent 81e70bce

introduce the load_content action

Showing 1 changed file with 62 additions and 0 deletions   Show diff stats
web/load_content.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: フランスのトトロ aka (David RENÉ)
  4 + * Date: 09/09/2018
  5 + * Time: 19:22
  6 + * © David RENÉ
  7 + */
  8 +
  9 +read system/convert.anubis
  10 +read calexium_lib/web/CXM_making_a_web_site.anubis
  11 +
  12 +public define String
  13 + load_content
  14 + (
  15 + String target,
  16 + WEB_Action_Name web_action,
  17 + List((String,String)) extra_args,
  18 + Bool replace
  19 + )=
  20 +
  21 + "CalexiumToolBox.ajax_load_content('"+target+"', '"+format_web_action_name(web_action, extra_args)+"', "+to_String(replace)+");"
  22 +.
  23 +
  24 +public define String
  25 + load_content
  26 + (
  27 + String target,
  28 + WEB_Action_Name web_action,
  29 + List((String,String)) extra_args
  30 + )=
  31 + load_content(target, web_action, extra_args, true)
  32 +.
  33 +
  34 +public define String
  35 + load_content
  36 + (
  37 + String target,
  38 + WEB_Action_Name web_action,
  39 + (String, String) extra_arg
  40 + )=
  41 + load_content(target, web_action, [extra_arg], true)
  42 +.
  43 +
  44 +public define String
  45 + load_content
  46 + (
  47 + String target,
  48 + WEB_Action_Name web_action
  49 + )=
  50 + load_content(target, web_action, [], true)
  51 +.
  52 +
  53 +
  54 +public define String
  55 + load_content
  56 + (
  57 + String target,
  58 + WEB_Action_Name web_action,
  59 + Bool replace
  60 + )=
  61 + load_content(target, web_action, [], replace)
  62 +.