B4J Question run JS code without WebSocket?

Solution
The only way to do it is by sending an ajax query from the client and then based on the server response do whatever you need in the client.

ilan

Expert
Licensed User
Longtime User
You can run JavaScript with WebView.

thank you erel for your reply, what i would like to do is run a specific js function from a server handler class. is that possible?

i am using sweetalert2 library and if there is an error i want to show an alert and send a response status.

thanx
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
The only way to do it is by sending an ajax query from the client and then based on the server response do whatever you need in the client.

why i have not think about that solution ?
exactly what i needed, thank you ?
 
Upvote 0
Top