Reputation: 2527
is it possible to have large chunks of text stored in .txt files, then included in the <p></p>
tags at all?
Thanks.
Upvotes: 0
Views: 1200
Reputation: 6038
Use server side language like PHP, ASP, JSP, and the like. You can use the language's features like include to include the text file.
If you don't want to use server side language, you can use ajax:
$.post("testfile.txt", "", function(response) {
$('p').text(response); /* display text file content */
});
Upvotes: 2
Reputation: 14798
Not with HTML alone, you'd have to use a server side language like PHP and do a basic include, or potentially you could use javascript to fetch the content with Ajax.
Upvotes: 3