hi..
I have the followign code
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("submenus2")
Dim req As HttpRequest
hc.Initialize("hc")
req.InitializeGet("http://www.thirdwavecafe.com.au/newjson.php?cat_id=9&format=json")
hc.Execute(req, 1)
req.InitializeGet("http://www.thirdwavecafe.com.au/newjson.php?cat_id=3&format=json")
hc.Execute(req, 2)
End Sub
Sub hc_ResponseSuccess (response As HttpResponse, TaskId As Int)
Log(TaskId)
Log(response.GetString("UTF8"))
End Sub
In the log we get the same string but different task id. Although when we run the webservice from browser we get different response strings. The correct output is different task ID and different response string. The string we get is always of task id 2. If we put message boxes in our code, it works perfectly.
rgds
I have the followign code
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("submenus2")
Dim req As HttpRequest
hc.Initialize("hc")
req.InitializeGet("http://www.thirdwavecafe.com.au/newjson.php?cat_id=9&format=json")
hc.Execute(req, 1)
req.InitializeGet("http://www.thirdwavecafe.com.au/newjson.php?cat_id=3&format=json")
hc.Execute(req, 2)
End Sub
Sub hc_ResponseSuccess (response As HttpResponse, TaskId As Int)
Log(TaskId)
Log(response.GetString("UTF8"))
End Sub
In the log we get the same string but different task id. Although when we run the webservice from browser we get different response strings. The correct output is different task ID and different response string. The string we get is always of task id 2. If we put message boxes in our code, it works perfectly.
rgds