I have this code on test.php displays all contents from testfile2.php every 3 seconds. This works fine but all jquery & css links are not being seen whether they are in test.php or testfile2.php
function refresh()
{
var req = new XMLHttpRequest();
console.log("Grabbing Value");
req.onreadystatechange = function ()
{
if (req.readyState == 4 && req.status == 200)
{
document.getElementById('monitor').innerHTML = req.responseText;
}
}
req.open("GET", 'testfile2.php', true);
req.send(null);
}
function init()
{
refresh()
var int = self.setInterval(function ()
{
refresh()
}, 3000);
}