1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

how to post a plain text only page on web?

Discussion in 'Web Design & Development' started by Advait, Feb 18, 2013.

Thread Status:
Not open for further replies.
Advertisement
  1. Advait

    Advait Thread Starter

    Joined:
    Sep 27, 2006
    Messages:
    12
    Hi All,

    I have what may be an unusual question. How do I post a plain text-only page up on the internet? An example of what I want is http://www.aliebling.com/sigs.txt

    There's no html on this page. Only plain text.

    I tried to do this on Google Sites using the "Add Files" feature, but when I go to the link it goes right to a "download file" dialog box which is not what I want.

    Example: https://sites.google.com/site/jaiamma/randomsigline/aphorisms_for_sig_line.txt

    I also tried https://sites.google.com/site/jaiamma/randomsigline/aphorisms_for_sig_line.html but that also went right to a download dialog box.

    Any ideas? Let me know if my question is not clear. Thanks!

    Advait
     
  2. DrP

    DrP

    Joined:
    Jul 23, 2005
    Messages:
    739
    It's probably something Google have purposely done, forcing this type of file to download rather than open in the browser.
     
  3. ckphilli

    ckphilli

    Joined:
    Apr 29, 2006
    Messages:
    4,393
    I may be missing the boat here...but why not just save the text file as an html file and upload it to the site?
     
  4. Advait

    Advait Thread Starter

    Joined:
    Sep 27, 2006
    Messages:
    12
    Good point. I tried that and it didn't work. Just took me right to the "download file" dialog box just like the .txt file did.

    Anyone know of a place where I can post a very small text-only page on the web? That doesn't trigger a download box, but rather just displays in the web browser.

    Thanks! Kind Regards,

    Advait
     
  5. Rearden

    Rearden Banned

    Joined:
    Jan 15, 2013
    Messages:
    169
    If you put the text in an HTML file between HTML tags, you shouldn't be prompted to download it.
     
  6. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,323
    First Name:
    Jim
    HTML:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    </head>
    <body>
    place your text here.
    </body>
    </html>
    
    Just build your html page using the template above and insert your raw text content (without tags, if you like) where indicated:)
    If this is an unacceptable format for the facility that you are using, then try these people...:)
     
  7. Advait

    Advait Thread Starter

    Joined:
    Sep 27, 2006
    Messages:
    12
    See below. OK, I modified the file to include the tags you specified. Then tried it as a .txt and then a .html file. Neither worked; still goes right to the download dialog box. It looks like Google Sites doesn't allow posting plain text web pages. Well, to be honest, they might, but I can't see how to do it. I posted this question on the Google Sites forum a few days ago but no reply yet. I've also posted this question on other forums but no suggestion has worked. I'll keep researching.

    Anyone else know how this can be done? When I look at the Page Source for http://www.aliebling.com/sigs.txt there's only the text. No html tags. Is this a clue?

    Thanks! Kind Regards, -Advait

     
  8. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,254
    First Name:
    Colin
    Just save Jim's code as test.html. Put it on your site and then go to test.html and all you will see are the words place your text here.

    If that works and I will be surprised if it doesn't then just paste the contents of your text file into Jim's code in place of place your text here and save it and upload it and it will do what you want. The file you upload needs to have an html extension.
     
  9. dvk01

    dvk01 Moderator Malware Specialist

    Joined:
    Dec 14, 2002
    Messages:
    56,236
    First Name:
    Derek
    you are uploading an attachment, so on Google pages, it will always be a download link
    what you need to do is create the page in the google editor, in the same way as you have created other pages on your google site, so it appears when you follow the link to the page. Or buy webhosting elsewhere & upload the txt file to that webspace using an FTP client & put a link to it on a google page that you want
     
  10. JiminSA

    JiminSA

    Joined:
    Dec 15, 2011
    Messages:
    3,323
    First Name:
    Jim
    Ok, I now see where you're coming from!:eek:

    You are attempting to insert a document into one of your Google Sites, yes?

    Shouldn't it be a simple case of using the Insert function on the left hand side of your edit site page and choosing document?
    OR even easier, copy and paste it into a new page body...
     
  11. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1090118

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice