Commit 8161c343aa8393f0e052a520b62aeb3231709363
1 parent
d7c27c62
add submit input type in actioner aspect
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
calexium_lib/web/CXM_making_a_web_site.anubis
| ... | ... | @@ -776,6 +776,7 @@ public type Actioner_Target: |
| 776 | 776 | public type Actioner_Aspect: |
| 777 | 777 | link (List(Text_Option),String text), // hypertext link |
| 778 | 778 | push_button (List(CoreAttrs),String text), |
| 779 | + submit (List(CoreAttrs),String text), | |
| 779 | 780 | button (String url_off, String url_on), // rollover button |
| 780 | 781 | button (String url_off, String url_on, Int32 w, Int32 h), // idem with size |
| 781 | 782 | immediate_selector (String name, Int32 size, List(String) choices). |
| ... | ... | @@ -2802,6 +2803,17 @@ define Printable_tree |
| 2802 | 2803 | [s,"<INPUT TYPE =\"button\" Value=\"",text,"\"", format_coreattrs(options), " onClick=\"",h,"\">"] |
| 2803 | 2804 | } |
| 2804 | 2805 | ], |
| 2806 | + submit(options, text) then | |
| 2807 | + [ | |
| 2808 | + if action is | |
| 2809 | + { | |
| 2810 | + url(u) then ["<a href=\"",u,"\"", format_coreattrs(options), ">", | |
| 2811 | + text, "</a>" | |
| 2812 | + ], | |
| 2813 | + javascript(s,h) then | |
| 2814 | + [s,"<INPUT TYPE =\"submit\" Value=\"",text,"\"", format_coreattrs(options), " onClick=\"",h,"\">"] | |
| 2815 | + } | |
| 2816 | + ], | |
| 2805 | 2817 | |
| 2806 | 2818 | button(url_off,url_on) then |
| 2807 | 2819 | [ if action is |
| ... | ... | @@ -2858,6 +2870,7 @@ define Printable_tree |
| 2858 | 2870 | { |
| 2859 | 2871 | link(opt,text) then [text], |
| 2860 | 2872 | push_button(opt, text) then [text], |
| 2873 | + submit(opt, text) then [text], | |
| 2861 | 2874 | button(url_off,url_on) then |
| 2862 | 2875 | [ |
| 2863 | 2876 | "<img alt=\"",url_off,"\" src=\"",url_off,"\" border=0", | ... | ... |