The Most Active and Friendliest
Affiliate Marketing Community Online!

“AdsEmpire”/  Direct Affiliate

Read a server file and write out using jQuery

Graybeard

Well-Known Member
I am only posting this because it's so simple but Google search is so messed up it took me hours to find a JavaScript solution.
Hope it helps someone :p

HTML:
<!DOCTYPE html>
<html lang="en" >

<head>

<meta charset="utf-8" />
<title>demo</title>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>

</script>
</head>

<body>



<script type="text/javascript">
$.get('./your.txt', function(data) {
$("#content").html(data)
});
</script>
<div id="content"></div>
</body>
</html>
 
MI
Back