Commit 0bd618e5f6f105cc86de15b2a3bc2709d3729a49
1 parent
8c047fec
add jq_form_submit which make submit with ajax
Showing
1 changed file
with
22 additions
and
0 deletions
Show diff stats
| 1 | +/* | |
| 2 | + * Created by PyramIDE. | |
| 3 | + * User: フランスのトトロ & Julien | |
| 4 | + * Date: 22/11/2014 | |
| 5 | + * Time: 18:36 | |
| 6 | + * © Calexium | |
| 7 | + */ | |
| 8 | + | |
| 9 | + // needs include | |
| 10 | + // js/cxm/cxm.js | |
| 11 | + // css/cxm/message.css | |
| 12 | + | |
| 13 | +public define String | |
| 14 | + jq_form_submit | |
| 15 | + ( | |
| 16 | + String form_id, //id of the form ID handled by this function | |
| 17 | + String url, //URL of submit. Becareful without anubis format like "?a=..." which is handled by this function | |
| 18 | + String container_id | |
| 19 | + )= | |
| 20 | + with container_id_str = if length(container_id) > 0 then ", '" + container_id + "'" else "", | |
| 21 | + "CalexiumToolBox.jq_form_submit('" + form_id + "', '" + url + "'"+container_id_str+");". | |
| 22 | + | ... | ... |