get webview web-form text entered by user

peacemaker

Expert
Licensed User
Longtime User
HI, All

Is it possible ?
App with some corporate web-interface, but with extra function to track the web-page login with the GPS coordinates.
 

Cableguy

Expert
Licensed User
Longtime User
Try the WebExtras Lib... what you want to do is accomplishable with JSon injection...
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Thanks, Cableguy. But possible a bit more detailed where\how\terms to google... ? :)
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Do you have control over creation of the login wbepage?

If so then you can use the HTML5 Geolocation API in the webpage to request the location of the user trying to login:

HTML5 Geolocation

If that's possible then some javascript in the (new) login webpage will now have the user location.
You can then pass the user location to your b4a code using WebViewExtras, you'd use the addJavascriptInterface method to add a javascript interface to your b4a WebView.
Now your login webpage can use javascript to communicate with your b4a code and pass the user location.

Some more info can be found here: http://www.b4x.com/forum/additional...updates/12453-webviewextras-2.html#post102448.

Martin.
 
Upvote 0
Top