I populate a html page in tab custom with lua
Code: Select all
WriteToFile('<table border="1"><col width="33%"><col width="25%"><col width="32%"><tr><td style="vertical-align:top">'..content..'</td><td style="vertical-align:top">'..weekoverzicht.."</td><td style='vertical-align:top'>"..data.."</td></tr></table>","CustomHTML")
The only problem is how to use HTML code to refresh the table lets day once in 5 minutes
HTML refresh commands cannot been used as it refreshes domoticz as well.
The trick should be in jquery but i have no clue how to start. I tried things by placing the table in a div, but it never refreshes. And then trying to refresh the div.
This snipplet i found on internet, but i have no clue how to adjust
Code: Select all
$.ajax({
//other options
success:function(){
commentContainer.slideUp('slow', function() {$(this).remove();});
$('#otherdiv').load('urlofpagewith info.html');
}
});Any suggestion is appriciated.