A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading Data From A Text File???

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    102
    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

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    475
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center