Javascript experts?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sam Granger
    Confirmed User
    • Dec 2004
    • 3958

    #1

    Javascript experts?

    How can I display the contents of a txt file in HTML using javascript? Anyone know?

    Thanks in advance!!

    $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
    14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
    Join Fetish Hits now!
    ICQ: 358652230
  • pstation
    Confirmed User
    • Jul 2003
    • 1135

    #2
    ajax
    1234

    Comment

    • pstation
      Confirmed User
      • Jul 2003
      • 1135

      #3
      if you just need to simply display the file without further manipulating it, using something like SSI would work better.

      Comment

      • chupachups
        Confirmed User
        • Dec 2002
        • 6576

        #4
        html compact

        Comment

        • Sam Granger
          Confirmed User
          • Dec 2004
          • 3958

          #5
          Originally posted by pstation
          if you just need to simply display the file without further manipulating it, using something like SSI would work better.
          Hmm but wouldn't I need to change all the file extentions from html to shtml?

          Any examples on how to do it with ajax?

          $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
          14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
          Join Fetish Hits now!
          ICQ: 358652230

          Comment

          • psili
            Confirmed User
            • Apr 2003
            • 5526

            #6
            Originally posted by Sam Granger
            Hmm but wouldn't I need to change all the file extentions from html to shtml?

            Any examples on how to do it with ajax?
            Do a google search for

            ajax display text file

            tons of examples - just copy and paste and you're golden.

            edit: apologies on not just explaining it here but it's mainly just a few functions and a "div" layer which you'll write too and am too lazy to explain it in detail.
            Last edited by psili; 06-22-2006, 06:28 AM.
            Your post count means nothing.

            Comment

            • Sam Granger
              Confirmed User
              • Dec 2004
              • 3958

              #7
              Thanks guys :

              $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
              14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
              Join Fetish Hits now!
              ICQ: 358652230

              Comment

              • Sam Granger
                Confirmed User
                • Dec 2004
                • 3958

                #8
                Originally posted by pstation
                if you just need to simply display the file without further manipulating it, using something like SSI would work better.
                Great!! I did it with SSI without renaming, just by using htaccess

                AddType text/html .shtml
                AddHandler server-parsed .shtml
                AddHandler server-parsed .html
                AddHandler server-parsed .htm
                Options Indexes FollowSymLinks Includes
                Thanks man!

                $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
                14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
                Join Fetish Hits now!
                ICQ: 358652230

                Comment

                Working...