By Dennis Hosang on Wednesday, 08 August 2018
Posted in General Issues
Replies 3
Likes 0
Views 502
Votes 0
I have a cron job that runs a php script and exports the results into an html file called subnetreport.html and what I would like to do is create a blog that is called Daily Subnet Report and when they open it up I could put some intro text and was hoping I could read the html file and display contents (it's basically a table)

I thought about doing html and include code like this but not having any luck

<html>
<head>
<script src="jquery.js"></script>
<script>
$(function(){
$("#includedContent").load("subnetreport.html");
});
</script>
</head>

<body>
<div id="includedContent"></div>
</body>
</html>


Any suggestions on how I can do this.
It i am not wrong, the current jQuery version have to call this method following method in order to call .load :


<script src="http://code.jquery.com/jquery-2.2.4.js"></script>
<script type="text/javascript">
$(window).on("load", function() {
$('.xxxx').load('http://eb52.com/news.html');
});
</script>


You can refer on my attached screenshot below.

By the way, it is beyond our support scope's policy as outlined in https://stackideas.com/support .

Thanks for understand.
·
Thursday, 09 August 2018 12:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post