diff --git a/web/jQuery/jq_typewatch.anubis b/web/jQuery/jq_typewatch.anubis new file mode 100644 index 0000000..ecf98cb --- /dev/null +++ b/web/jQuery/jq_typewatch.anubis @@ -0,0 +1,37 @@ +/* + * Created by PyramIDE. + * User: フランスのトトロ aka (David RENÉ) + * Date: 11/07/2021 + * Time: 00:21 + * © David RENÉ + */ + +read tools/string.anubis + + +public define String + watch_options + ( + String target_id, //id of the target to insert the result + String ajax_url, // + Int wait, + ) + = +"{ + callback: function(value) {Xlib.load_content('"+target_id+"', "+ajax_url+")}, + wait:"+wait+", + highlight: true, + allowSubmit: false, + captureLength: 0 +}" +. + +public define String + init_watcher + ( + String element, + String target_id, + String ajax_url, + )= + "$('#"+element+"').typeWatch("+watch_options(target_id, ajax_url, 750)+");" +. -- libgit2 0.21.4