Loading news from a text file

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Loading news from a text file

    Hi, I'm new to dreamweaver and I'm wondering how I could somehow link a news
    section of my website to an external text file, so all I would have to do is
    update the text file when I wanted to update the news, instead of updating the
    whole .html file.

    (I mean link, not as in an actual link, but to have the news show up on the
    main page FROM the text file).

    Thanks,
    - Patrick

    MercuryLime Guest

  2. Similar Questions and Discussions

    1. HELP > External Text or HTML file Loading
      Hi all, plz visit - http://www.vision-divine.com/samples/test.swf to see what i mean I am using FlashMX and i have the following - .. a...
    2. Loading text into variables from .txt file
      Hello, I have the following question. Before I begin, I would like to say that I am completely lost with the changes in actionscript for MX2004. ...
    3. loading variables from a text file...
      A problem with loading variables using LoadVars object... here's the code... data01 = new LoadVars(); data01.onLoad = function(success) { if (...
    4. Loading text from a text file
      ok i have now managed to save the string to a text file, but now when i load it back (after closing the projector) i can only load all the text...
    5. opening asp file and loading certain text into a form
      Hello. Can anyone help me with the following. I have a config.asp file with contains information like: ...
  3. #2

    Default Re: Loading news from a text file

    Use your text file as an include file.
    MrBonk Guest

  4. #3

    Default Re: Loading news from a text file

    Ok, I included it, how do I make it display the text from the file now?
    MercuryLime Guest

  5. #4

    Default Re: Loading news from a text file

    All you need to do is to put the include statement wherever you want the
    content to appear on your page.

    So, for eg. if you have a layer that you want the text file contents to appear
    in, you would do something like:

    <div id="NewsLayer" style="position:absolute; left:73px; top:70px;
    width:172px; height:176px; z-index:1">
    <!--#include file="text_file.txt" -->
    </div>


    MrBonk Guest

  6. #5

    Default Re: Loading news from a text file

    Do I need to save it as .shtml when I do that, or does it work as normal .html?
    MercuryLime Guest

  7. #6

    Default Re: Loading news from a text file

    Depends on your server setup. Some servers are set to only look for includes
    in files with particular extensions.....some look for them in all files
    (slower, so less common). You'll need to check with your host.

    MrBonk Guest

  8. #7

    Default Re: Loading news from a text file

    Alright, I got it working. Thanks.
    MercuryLime Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139