Hello. I have the following script where i receive a message from a http client and return it as a string.
In this last script i am using Ajax to get the $lastLine string from status.php, and display the content in it's div containter, but i want to split $lastLine by spaces, into an array, and use ajax to populate the page with the values of this array because i want to use them later to build a html table. So the question is HOW can i use ajax to load the data from the array into the variables into $btStatus, $maxTemp, $minTemp, $currentTemp, and use them later? or HOW can i get the string that is displayed in the div container and use it later?
Edit: I came up with a solution, to build the html table in status.php and echo it with ajax in the div container. But im looking for a better solution ;)
Life is not measured by the number of breaths we take, but by the moments that take our breath away.
I guess I will just let status.php output the required data without any formatting, which could be JSON or csv format.