ElliotHC Active Member Licensed User Jul 15, 2020 #1 I've been trying to find a very straight forward example of how to do this in B4J. Dim URL as String URL = "https://myurl.com" Click a Button All the text on that above page goes in to a text field. Anyone know how to do this?
I've been trying to find a very straight forward example of how to do this in B4J. Dim URL as String URL = "https://myurl.com" Click a Button All the text on that above page goes in to a text field. Anyone know how to do this?
ilan Expert Licensed User Longtime User Jul 15, 2020 #2 try this: B4X: Copy Dim URL as String = "https://myurl.com" Dim j As HttpJob j.Initialize("", Me) j.Download(URL ) Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) Textfield1.Text = j.GetString End If j.Release Last edited: Jul 16, 2020 Upvote 0
try this: B4X: Copy Dim URL as String = "https://myurl.com" Dim j As HttpJob j.Initialize("", Me) j.Download(URL ) Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) Textfield1.Text = j.GetString End If j.Release
Erel B4X founder Staff member Licensed User Longtime User Jul 16, 2020 #3 Tutorial: [B4X] OkHttpUtils2 with Wait For Upvote 0
ElliotHC Active Member Licensed User Jul 16, 2020 #4 ilan said: try this: B4X: Copy Dim URL as String = "https://myurl.com" Dim j As HttpJob j.Initialize("", Me) j.Download(URL ) Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) Textfield1.Text = j.GetString End If j.Release Click to expand... That has worked perfectly. Thank you ilan. Upvote 0
ilan said: try this: B4X: Copy Dim URL as String = "https://myurl.com" Dim j As HttpJob j.Initialize("", Me) j.Download(URL ) Wait For (j) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) Textfield1.Text = j.GetString End If j.Release Click to expand... That has worked perfectly. Thank you ilan.