ilan Expert Licensed User Longtime User Sep 13, 2021 #1 hi can we run from our app (b4x) javascript code without using websocket?
Solution Erel Sep 13, 2021 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2021 #2 You can run JavaScript with WebView. Upvote 0
ilan Expert Licensed User Longtime User Sep 13, 2021 #3 Erel said: You can run JavaScript with WebView. Click to expand... 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
Erel said: You can run JavaScript with WebView. Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2021 #4 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. Upvote 1 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 Sep 13, 2021 #5 Erel said: 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. Click to expand... why i have not think about that solution ? exactly what i needed, thank you ? Upvote 0
Erel said: 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. Click to expand... why i have not think about that solution ? exactly what i needed, thank you ?