Android Question WebViewExtras (WebView) touch or click on EditText

DeveloperNima

New Member
Hello dear friends
I want to touch EditText in WebView when touched inside the app Edit Text.
But I can not do that, Please guide me !
Thank you in advance for your effort .
 

Attachments

  • MyApp.zip
    25.2 KB · Views: 130

drgottjr

Well-Known Member
Licensed User
Longtime User
works for me (as far as i went). when i type developernima into the user edittext in b4a, it appears in the correct field in the webview.

you have a lot of unused code which makes things confusing, but, technically, the b4a part works. i didn't spend a lot of time looking at your javascript, so i can't say all of it is correct.

you say
I want to touch EditText in WebView when touched inside the app Edit Text.
that works. so i don't see what your problem is.
 

Attachments

  • 1.png
    1.png
    57 KB · Views: 125
Upvote 0

DeveloperNima

New Member
works for me (as far as i went). when i type developernima into the user edittext in b4a, it appears in the correct field in the webview.

you have a lot of unused code which makes things confusing, but, technically, the b4a part works. i didn't spend a lot of time looking at your javascript, so i can't say all of it is correct.

you say
that works. so i don't see what your problem is.


Hi Sir @drgottjr,
Unfortunately my question was not clear, I apologize.
When I write text in B4A it works normally in WebView of other sites.
But here the text is typed but in blur and inactive, and for this reason, after writing the username and password, the login button is not activated. How can it not be typed in blur? And activate the login button after typing?
 
Upvote 0

drgottjr

Well-Known Member
Licensed User
Longtime User
sorry, still not clear.
But here the text is typed but in blur and inactive,
??
and you don't have a login button, you have a delete button.
plus it is very difficult to test the app without an account
 
Upvote 0

DeveloperNima

New Member
sorry, still not clear.
??
and you don't have a login button, you have a delete button.
plus it is very difficult to test the app without an account

Please see the full source code first !

Button Delete Account Code:
Private Sub BtnDeleteAccount_Click
    WebViewExtras1.executeJavascript(WebView1, "document.evaluate('/html/body/div[1]/section/main/div/div/div[1]/div/form/div/div[3]/button', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.submit();")
End Sub

Inside the user account delete button, I put the login code for testing.

When writing text in a EditText in b4a, pay attention to the webview page (look at the picture). Text has been disabled. When we enter the username and password, the login button should be activated, but it is not activated.

Modify my code to activate the login button and tell me the result, please.
 

Attachments

  • 1.png
    1.png
    57.1 KB · Views: 104
Upvote 0
Top