mc73 Well-Known Member Licensed User Longtime User Aug 29, 2018 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2018 #2 There is no similar API in JavaFX WebView. You can inject JavaScript that will make a POST request. Upvote 0
mc73 Well-Known Member Licensed User Longtime User Aug 31, 2018 #3 Erel said: There is no similar API in JavaFX WebView. You can inject JavaScript that will make a POST request. Click to expand... Indeed, this solved the problem, thank you! Upvote 0
Erel said: There is no similar API in JavaFX WebView. You can inject JavaScript that will make a POST request. Click to expand... Indeed, this solved the problem, thank you!
Pablo Torres Active Member Licensed User Longtime User Mar 25, 2019 #4 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
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