I have a [search text box] and a [search button]
A URL hxxp://mysitehere.com/find.php?text=
What I'm trying to do is this:
The text that I type in the [search text box] to be added to the end of the URL and go to that webview when [search button] is pressed.
For example if I type "chicago"
I would like it to go to hxxp://mysitehere.com/find.php?text=chicago
Awesome! Thanks BasicBert :sign0188:
I actually played with it for a while and found the solution myself.
Did it like this. Workes just like I wanted. :icon_clap:
B4X:
Sub Globals
Dim WebView1 As WebView
Dim EditText1 As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("project1")
WebView1.LoadUrl("hxxp://mysitehere.com")
End Sub
Sub Button5_Click
WebView1.LoadUrl("hxxp://mysitehere.com/find.php?text="&EditText1.Text)
End Sub
:sign0142:
If just 1 word from me, a :sign0104:, was helpfull to you, I'm happy.
Just because it's my first response to someone else's question in stead of my own.
I have not (yet) used a webview myself, so I'm learning from you too. I might have to use it later.
Reading other posts, even ones that you think may not apply to yourself, is a great source of examples and help and brings you idea's.