Difference between revisions 1485765 and 1519916 on nlwiktionary/** See talk page for details **/ //JsMwApi documentation is at http://en.wiktionary.org/wiki/User_talk:Conrad.Irwin/Api.js function JsMwApi (api_url, request_type) { if (!api_url) { if (typeof(wgEnableAPI) === 'undefined' || wgEnableAPI == false) (contracted; show full) { res = {error: { code: '_badresult', info: "De server retourneerde een foutief opgemaakt antwoord" }}; } } if (!res || res.error /* || res.warnings*/) on_error(xhr, callback, res); else callback(res); } } } function request_remote (url, query, callback, on_error) { if(! window.__JsMwApi__counter) window.__JsMwApi__counter = 0; var cbname = '__JsMwApi__callback' + window.__JsMwApi__counter++; window[cbname] = function (res) { if (res.error /* || res.warnings*/) on_error(null, callback, res); else callback(res); } var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); (contracted; show full)function concatObject(obj) { str=''; for(prop in obj) { str+=prop + " value :"+ obj[prop]+"\n"; } return(str); } All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://nl.wiktionary.org/w/index.php?diff=prev&oldid=1519916.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|