Scott > On 29 Jan 2016, at 18:30, Scott Rossi <sc...@tactilemedia.com> 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). Regards Peter _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode