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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:59:43+00:00 2026-05-24T07:59:43+00:00

I apologize for the probably confusing title, but I wasn’t quite sure how to

  • 0

I apologize for the probably confusing title, but I wasn’t quite sure how to label this thread. At any rate, I’m working on a web application that works just fine in IE, but seems to fail in Firefox for some reason. I know this seems to happen with a lot of applications at first, but the errors that the Firefox development console are giving me don’t really make much sense. Here are the errors it’s coming up with:

$("#workNews").text(lines[i++]).hide is not a function
syntax error
data.split is not a function

The first error is claiming that the following line of code is breaking because it thinks that jQuery.hide() is not a function.

$("#workNews").text(lines[i++]).hide().fadeIn(500).delay(4000).fadeOut(500);

Now, this line of code has worked in both IE and Firefox before, but it has suddenly broken. The same with the third error, in that it believes that the “split()” method that breaks a string up by a delimiter is not a function. Again, this line worked before, and now it suddenly doesn’t. The “syntax error” is what’s really weird… I’m opening and reading lines from a text file with the “$.get()” method, which has worked fine and still does in IE. However, the Firefox developer console tells me that there’s a syntax error and proceeds to point to a line of text within the file.

I’m not sure if there’s a simple thing I need to fix elsewhere in my code that is not apparent by these errors, but when encountering problems like this, I was wondering if there was any “usual reason” for this to happen. If you need to see more of my code, simply ask. Thank you.

EDIT #1: Just to be safe, here’s the whole function in which all three “errors” are supposedly occurring. Again, this function has worked just fine in both IE and Firefox until just recently.

function GetWorkNews() {
    var lines = new Array(); var i = 0;
    $.get(textFile, function(data) {
        lines = data.split("\n");
    });

    $("#workNews").text(lines[i++]).hide().fadeIn(500).delay(4000).fadeOut(500);
    setInterval(function() {
        $("#workNews").text(lines[i++]).hide().fadeIn(500).delay(4000).fadeOut(500);

        if(i == lines.length) {
            i = 0;
        }
    }, 5000);
}

EDIT #2: When I was tinkering around, I commented out the first jQuery line in which I call the hide() function:
$(#workNews”).text(lines[i++]).hide().fadeIn(500).delay(4000).fadeOut(500);
Everything seems to work now, though the FF Dev Console still tells me there’s a syntax error within my text file. I suppose I don’t “need” this line which I commented out, for it simply primes my banner with text so that it doesn’t have to wait the five seconds for the first headline to display, but I’d still like it. Any ideas why that line broke, but not the exact same line within the setInterval() function?

  • 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-05-24T07:59:44+00:00Added an answer on May 24, 2026 at 7:59 am

    As a recap, I’ve found two possible solutions to the problem. The first and less desirable was to just delete the priming line of code. The second was to break up the function calls of the problem line so that this:

    $("#workNews").text(lines[i++]).hide().fadeIn(500).delay(4000).fadeOut(500);
    

    becomes this:

    $("#workNews").text(lines[i++]);
    $("#workNews").hide();
    $("#workNews").fadeIn(500);
    $("#workNews").delay(4000);
    $("#workNews").fadeOut(500);
    

    Apparently FF doesn’t like chaining these function calls together like IE apparently permits. Still, the FF developer’s console still complains about some kind of syntax error within the text file being read from, but it doesn’t seem to cause any major errors.

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

Sidebar

Related Questions

I'm sure this question has probably been answered before, so I apologize, but I
I'm sure this is probably something simple so I apologize ahead of time. This
I apologize if this is a duplicate, but I couldn't find any concrete examples
I apologize for the subjectiveness of this question, but I am a little stuck
I apologize if this question is vague, but I want to build a drop
This is probably a simple one but I cant get my head around it.
I have a feeling that this probably is not possible using strictly CSS, but,
I know this is probably a very newbish question, so I apologize. I am
This is probably a novice question, so I apologize for my daftness ahead of
I apologize for the title, but I couldn't think of a better way 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.