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 9183833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:54:02+00:00 2026-06-17T18:54:02+00:00

I am reading a text file trough XMLHttpRequest inside Firefox trough the normal means,

  • 0

I am reading a text file trough XMLHttpRequest inside Firefox trough the normal means, the text file consist of a single line of picture filenames seperated with a pipe symbol (‘|’).
Everything works in the end, my image list gets read, i can parse it just fine and load my pictures.

Here is the code for the curious.

bilderListeDatei.open("GET","./bilder/liste?nocachetrick="+jetzt.getTime(),true);

bilderListeDatei.onreadystatechange = function () 
{
    if (bilderListeDatei.readyState === 4) 
    {  
        if (bilderListeDatei.status === 200) 
        {  
            bilderListe = bilderListeDatei.responseText.split("|");
            elementeZuLaden += bilderListe.length;

            for(var i in bilderListe)
            {
                var j = bilder.push(new Image());
                bilder[j-1].onload = function() 
                                        {
                                            elementeGeladen++;
                                            if(elementeZuLaden == elementeGeladen){elementeLadenFertig = true;}
                                        }
                bilder[j-1].src = "./bilder/" + bilderListe[i];
                //alert(j);
            }
        }
    }
} 

As said the syntax error is produced inside my text file, not the code, that works flawlessly.
Any idea how i could get rid of that (ignored by the rest of the programm) error message?

EDIT:
The error message because it got mangled up in the comment:

Zeitstempel: 18.01.2013 14:15:01
Fehler: Syntax-Fehler
Quelldatei: http://192.168.2.102/seitenbastel/bilder/liste?nocachetrick=1358514901070
Zeile: 1, Spalte: 1
Quelltext:
65.jpg|67.jpg|69.jpg|71.jpg|73.jpg|75.jpg|77.jpg|79.jpg|81.jpg|83.jpg|85.jpg|87.jpg|89.jpg|91.jpg|93.jpg|95.jpg|97.jpg
  • 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-17T18:54:03+00:00Added an answer on June 17, 2026 at 6:54 pm

    XMLHttpRequest will try to parse the results as XML, in general, to create the responseXML object. Your data is presumably not XML. You either need to tell the browser that in your Content-Type header (e.g. setting it to text/plain in your case) or tell the browser that you don’t actually want a parsed DOM representation at all by setting responseType = "text" on the XHR object if you only plan to use the text.

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

Sidebar

Related Questions

Anyone got anything about reading a sequential number from text file per line and
I'm reading a text file via CGI in, in perl, and noticing that when
I am reading a text file which contains numbers in the range [1, 10^100].
I am reading a text file which I guess is encoded in utf-8. Some
I have some code reading a text file and scanning for words between brackets:
I'm having a problem where instead of reading a text file from the location
I seem to be encountering an error when reading from a text file. This
I am reading in from a text file using StreamReader into a string array
I have a text file which I am reading and storing the data in
I have a large text file I am reading from and I need to

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.