// timeout on client side static long smartBot_autoComplete_defaultHardTimeout = 5000; static int smartBot_autoComplete_defaultMaxEntries = 10; static L smartBot_autoComplete(S s) { L l = jsonDecodeList(loadPageWithTimeout("http://smartbot.botcompany.de/autocomplete/" + urlencode(s) + "?n=" + smartBot_autoComplete_defaultMaxEntries, smartBot_autoComplete_defaultHardTimeout)); new L out; for (Map map : l) { S follow = getString(map, "follow"); if (nempty(follow)) continue with out.add(s + follow); S whole = getString(map, "whole"); if (nempty(whole)) out.add(whole); } ret out; }