I'm doing AJAX-requests within an Intervalfunction in Javascript (e.g. once every 10 seconds).
I want to store the response (text ~ of the previous request) in a Javascript variable.
When the next request takes place, I want to check if the new response matches the previous one or not.
Something like:
var temp_data = response; //store response here
var final_data;
if(){
final_data = temp_data;
}
else {
}
Need soms advice/help,
Thanks!