syntax_editor_macros
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
syntax_editor_macros [01/07/2025 13:14] – johnsonjohn | syntax_editor_macros [01/07/2025 13:16] (current) – johnsonjohn | ||
---|---|---|---|
Line 76: | Line 76: | ||
====c_GlideAjaxMethod==== | ====c_GlideAjaxMethod==== | ||
< | < | ||
+ | //text | ||
+ | // | ||
+ | |||
+ | //From client side code, to invoke server side code asynchronously, | ||
+ | //Use the addParam() function, and by convention, the parameter named " | ||
+ | // | ||
+ | //Use getXMLAnswer() to invoke the server-side function and specify a callback function; in this example " | ||
+ | //Use a direct parameter in your callback function to make use of data returned by the server; in this case the parameter is named " | ||
+ | function onLoad() { | ||
+ | g_form.addInfoMessage(" | ||
+ | |||
+ | var ga = new GlideAjax(' | ||
+ | ga.addParam(" | ||
+ | ga.getXMLAnswer(finishClientSideWork); | ||
+ | |||
+ | g_form.addInfoMessage(" | ||
+ | |||
+ | var ga2 = new GlideAjax(' | ||
+ | ga2.addParam(" | ||
+ | ga2.addParam(" | ||
+ | ga2.getXMLAnswer(finishClientSideWorkTWO); | ||
+ | |||
+ | g_form.addInfoMessage(" | ||
+ | } | ||
+ | |||
+ | function finishClientSideWork(answerFomServer) | ||
+ | { | ||
+ | g_form.addInfoMessage(" | ||
+ | g_form.addInfoMessage(" | ||
+ | g_form.addInfoMessage(" | ||
+ | } | ||
+ | |||
+ | function finishClientSideWorkTWO(answerFomServerTWO) | ||
+ | { | ||
+ | g_form.addInfoMessage(" | ||
+ | g_form.addInfoMessage(" | ||
+ | g_form.addInfoMessage(" | ||
+ | } | ||
</ | </ | ||
---- | ---- |
syntax_editor_macros.1736284457.txt.gz · Last modified: 01/07/2025 13:14 by johnsonjohn