Commit 293b4efaa16b8402ce17d1f69282245b4ebeef5f

Authored by David RENÉ
1 parent 744eff85

[+] create load_page with WEB_Action_Name. like the load_content, load_page is a…

…n url where is located the page to load
Showing 1 changed file with 27 additions and 0 deletions   Show diff stats
web/load_content.anubis
... ... @@ -13,6 +13,33 @@ read xlib/web/web_action.anubis
13 13 read xlib/web/js_tools.anubis
14 14  
15 15 public define String
  16 + load_page
  17 + (
  18 + WEB_Action_Name web_action,
  19 + List((String,String)) extra_args
  20 + )=
  21 + "location.href='"+format_web_action_name(web_action, extra_args)+"'"
  22 +.
  23 +
  24 +public define String
  25 + load_page
  26 + (
  27 + WEB_Action_Name web_action,
  28 + (String, String) extra_arg
  29 + )=
  30 + load_page(web_action, [extra_arg])
  31 +.
  32 +
  33 +public define String
  34 + load_page
  35 + (
  36 + WEB_Action_Name web_action
  37 + )=
  38 + load_page(web_action, [])
  39 +.
  40 +
  41 +
  42 +public define String
16 43 load_content
17 44 (
18 45 String target,
... ...