B4J Question How to pass MAP to browser client ?

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

I could pass Map data from browser to server as following.
browser side
B4X:
b4j_raiseEvent("archer_click", {"name": id,"event":evnt});
server side
B4X:
Sub archer_click(Params As Map)
    Dim id As String=Params.Get("name")
    Dim event As String=Params.get("event")
    Log(id & "," & event)    
    End If
End Sub

How could i pass a MAP from server to browser ?
 

jinyistudio

Well-Known Member
Licensed User
Longtime User
Yes,I am using ws.RunFunction. But I don't know how to access MAP in browser side with javascript.
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

Above is using WebSocket to pass map. How do i call javascript function(GET request) from browser and then recive map from b4j server(with AddHandler) ?
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…