Problem with webview - I have 2 separate pages each with a webview, one displays the products and the second the cart and they are perfectly synchronized.
That is, if I insert a product in the cart from the first window , I find it in the second.
The question now comes ... I have to pick up the cart and if I call the page with the routines that I place below
in fact the cart returns to me (in res, without any errors) .... pity it's empty ..
Why are the two webviews synchronized and this call is not?
I could also fetch the data directly from webview, but I have not found anywhere, how to insert in a string or rather list
(it returns me a json set), the text content of the webview page.
Anyone can give me some info?
Thank's
Sub ExecuteRemoteQuery(Query As String, JobName As String)
Dim job As HttpJob
job.Initialize(JobName, Me)
job.PostString("https://www.mydomain.it/cart.json", "")
End Sub
Sub JobDone(Job As HttpJob)
ProgressDialogHide
If Job.Success Then
Dim res As String
res = Job.GetString
Log("Response from server: " & res)
Dim parser As JSONParser
parser.Initialize(res)
Select Job.JobName
Case "GETCART"
Log("GetCart" & res)
End Select
Else
Log(Job.ErrorMessage)
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub