On Thursday, 14 September 2017 16:20:11 CEST Paolo Saudin wrote:
> You need an ajax call, with the URL set to a valid route in the mojolicious
> application. Search for "mojolicious ajax" and you will find some examples.

Another option which provides a better interactivity is to use websockets.

websockets are used to exchange text (or JSON) messages between the Perl part 
and the javascript part. you have to setup on both sides to react to event 
(onmessage ...) .

You should search for websocket usage in mojolicious and then websocket in 
javascript (like [1])

HTH

[1] https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/
Writing_WebSocket_client_applications

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to