-
Hey everybody. Does anyone know of a way to load data from a text file into an HTML page, perferably with DHTML or Javascript. If anyone has any ideas or know how to do it ANY way, id appreciate it. Thanks
-
Hi
Luckily this is impossible with client side languages.
You must use a serverside language or SSI to do this. Perl or PHP will do fine on this one.
well an idea that came myself while writing this text is that you could include a javascript file that simulates the text file. like:
in HTMLfile
<script src="textsim.js" language="javascript"></script>
<script language="javascript">
document.write (text);
</script>
in file textsim.js
text = "way more text than shown here";
this of course is no real text file - it is a javascript with a huge variable holding the content you want to include...
Yours
HTD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|