J Jeboiii Member Licensed User Longtime User Jul 18, 2016 #1 Sub View_website job1.Initialize("Job1", Me) job1.Download("http://google.com") End Sub Sub JobDone (Job As HttpJob) If Job.Success = True Then Log(Job1.GetString) '---> How to show this site from webview?? ("webview1.Loadurl(Job1.GetString)" was unable to view the site) Else ToastMessageShow("Error: " & Job.ErrorMessage, True) End If Job.Release End Sub Last edited: Jul 18, 2016
Sub View_website job1.Initialize("Job1", Me) job1.Download("http://google.com") End Sub Sub JobDone (Job As HttpJob) If Job.Success = True Then Log(Job1.GetString) '---> How to show this site from webview?? ("webview1.Loadurl(Job1.GetString)" was unable to view the site) Else ToastMessageShow("Error: " & Job.ErrorMessage, True) End If Job.Release End Sub
DonManfred Expert Licensed User Longtime User Jul 18, 2016 #2 If you want to show the site in a webview then directly load the site to the webview... Code: webview1.Loadurl("http://www.google.com") Upvote 0
If you want to show the site in a webview then directly load the site to the webview... Code: webview1.Loadurl("http://www.google.com")
J Jeboiii Member Licensed User Longtime User Jul 19, 2016 #3 I know that DonManFred, My purpose of using this is just to test whether the page is available or not to prevent "Webpage is not available" from the webview. I read some comments that I need to use httpUtils2/Okhttp. Hope you get my point. Last edited: Jul 19, 2016 Upvote 0
I know that DonManFred, My purpose of using this is just to test whether the page is available or not to prevent "Webpage is not available" from the webview. I read some comments that I need to use httpUtils2/Okhttp. Hope you get my point.