LC Server Call Javascript Function?

Peter W A Wood peterwawood at
Fri Jan 29 11:36:31 CET 2016


> On 29 Jan 2016, at 18:30, Scott Rossi <scott at> wrote:
> Can a LiveCode server script call a Javascript function?
> I want to write some text into a div in an LC server web page without
> refreshing the entire page.  AFAICT, generating any text from a LiveCode
> server script will replace the contents of page, but cannot target a a
> specific DOM element on the page.  Since Javascript can do this, is there
> any way to trigger a Javascript function from an LC server script?

It is easy enough to do, if the JavaScript calls the LC Server Script. I believe that pushing content from the server to the browser can be achieved using the HTML5 WebSocket API (which will be a lot more complicated).



More information about the use-livecode mailing list