Dear friends,
normally I can receive and work with JSON ( I get [{"countactive":"2"}] from php and I can work with that in B4A),
but now I am trying to do new task:
I have PHP with javascript which give me JSON string BUT I get it after +-3 second ..... (after I start simple HTTP task via my browser)
but
My app crashed, because when I started the request in B4A, then after some miliseconds I see in LOGs only "html" code of my PHP site....and not JSON output in format [{"countactive":"2"}] which this site can generate after 3-5 second
and it is clear that this code crashed (I understand):
Please how can I wait for this json string with my B4A app? What is better way - how to solve this task?
How can I disable reading "html" content of my php site and how can I wait 3-5second only for described JSON (text)?
Is it possible?
Best regards
p4ppc
normally I can receive and work with JSON ( I get [{"countactive":"2"}] from php and I can work with that in B4A),
but now I am trying to do new task:
I have PHP with javascript which give me JSON string BUT I get it after +-3 second ..... (after I start simple HTTP task via my browser)
but
My app crashed, because when I started the request in B4A, then after some miliseconds I see in LOGs only "html" code of my PHP site....and not JSON output in format [{"countactive":"2"}] which this site can generate after 3-5 second
and it is clear that this code crashed (I understand):
Dim myjson As Map
myjson=mx
Please how can I wait for this json string with my B4A app? What is better way - how to solve this task?
How can I disable reading "html" content of my php site and how can I wait 3-5second only for described JSON (text)?
Is it possible?
Best regards
p4ppc
Last edited: