Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9079287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:48:09+00:00 2026-06-16T19:48:09+00:00

I am using XMLHttpRequest responseText to GET a server txt file and load the

  • 0

I am using XMLHttpRequest responseText to GET a server txt file and load the contents of that file into an editable text box. The txt file contains short lines of letters separated by a new line. The user can chose which txt file to load and edit these lines before submitting the form. I need these new lines for the next step in processing the user inputs.

This works as expected in Chrome. In IE8 when the contents of txt file are loaded the editable text box looks like it is seperated by new lines but if I copy that newly loaded text and paste it into vim there are no \n or \r characters just space. If I manually copy and paste the contents of the .txt file into the IE8 text box the text is displayed properly and I can submit my form.

Chrome does not remove the return characters when loading the file. What is screwing up my text when loaded into IE? I can only see the difference between the text loaded in Chrome vs IE through vim.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T19:48:10+00:00Added an answer on June 16, 2026 at 7:48 pm

    Newline/LF translation will always give you headaches. Don’t judge the equivalence of your response text based on those characters.

    If the rest of the data is the same, then it’s the same result for what it matters. If any of your code is dependent on these characters, change the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an XMLHttpRequest using ExtJS to a service that returns no responseText, just
I have a web application that adds contextual information to XmlHttpRequest objects using the
currently i using this code in phonegap application var xmlhttp = new XMLHttpRequest(); xmlhttp.open(GET,http://192.168.1.19:8080/searchMobile?categoryRequest=true,
I am trying to upload an image to server using using XMLHttpRequest but fails.
i have loaded a file into an array using ajax and after splitting it
I am trying to download an Excel file using Ajax (XMLHttpRequest). On completion the
I'm trying to download a binary file using XMLHttpRequest (using a recent Webkit) and
I have a web application that receives json from a server. I was using
I am trying to make asynchronous calls using xmlhttprequest object so it completely works
I'm trying to do a simple exercise querying a database from JS using XMLHTTPrequest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.