B4J Question [ABmaterial] httpjob get and show a html file

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

In a abmaterial page(tokenpage.pas), I use following code and then get a HTML file(job.getstring) from remote. How could i show the html code(file) in the current page ?:(

B4X:
Sub btn1_Clicked(target As String)
    Dim url As StringBuilder
    url.Initialize
    url.Append("https://notify-bot.line.me/oauth/authorize?")
    url.Append("response_type=code")
    url.Append("&client_id=gKzwJNUaVvNTzkN59TFLTe")
    url.Append("&redirect_uri=http://localhost:8100/linenotify/index.html")
    url.Append("&scope=notify")
    url.Append("&state=abcde")
    Dim job1 As HttpJob
    job1.Initialize("GetDo",Me,Null)
    job1.download(url)
    'ws.Eval(url,Null)
    'ws.Flush

Sub JobDone (Job As HttpJob)
   Log(Job.GetString)  
End Sub
End Sub
 
Last edited:

jinyistudio

Well-Known Member
Licensed User
Longtime User
Last edited:
Upvote 0
Top