B4J Question webView postUrl not supported? [SOLVED]

mc73

Well-Known Member
Licensed User
Longtime User
I use the postUrl in my android webViews without a problem. Here's the code used:
Code: Copy
Dim bytesOfPOstRequest() As Byte
bytesOfPOstRequest=tempPostString.GetBytes("UTF8")
Dim jo As JavaObject
jo=myWebView
jo.RunMethod("postUrl",Array As Object(PostUrl,bytesOfPOstRequest))
Tried doing the same in b4j, but I get
Code: Copy
java.lang.RuntimeException: Method: postUrl not found in: javafx.scene.web.WebView
.
Is this a dead end or there exists another approach? Actually trying downloading the url, using httpUtils, is not functioning due to javascript checks performed by the server.
Thank you.
 
Hi, how did you solve it? I have the same problem right now and I nedd a little help
Can you post a little example?

Many thanks
 
Upvote 0
Back
Top