I am using jquery for reading content from text file using AJAX. I tried it with sample application, it is working fine. But when i used in project, it is not showing the text. It scrolls entire page while loading.
Below is the code which i have used.
$(window).load(function () {
jQuery.get('TextFile1.txt', function (data) {
//process text file line by line
$('#marDemo').html(data);
});
});
Could you please help me for the above issue.

Joginder BangerRank #360 · 7K reputationPosted Apr 1, 2016, 3:23 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 1, 2016, 3:53 AM EDT
Rajasekar S75 reputationPosted Apr 4, 2016, 2:23 AM EDT
Rajasekar S75 reputationPosted Apr 4, 2016, 2:27 AM EDT