I have a dumb network device that has limited HTTP hosting capabilities and I'm trying to write a slightly more dynamic page to display data with. A some current process values can be found in plain-text at /temp.dat on the device, but my stone-simple jQuery script...
$(document).ready(function() {
$('#temp').load('/temp.dat');
var refreshId = setInterval(function() {
$('#temp').load('/temp.dat');
}, 2000);
$.ajaxSetup({ cache: false });
});
...seems to endlessly fail (only after the first .load on the initial page load) because the device abhors HTML query parameters. Chrome's JS console shows endless errors like the following:
GET http://192.168.1.250/temp.dat?_=1341980712854
How can I get jQuery (or pure JavaScript) to hammer away at a specific URL without attaching the HTML query (...?_=123456789)?