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

  • Home
  • SEARCH
  • 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 4609960
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:03:48+00:00 2026-05-22T01:03:48+00:00

i am currently working on a program in jquery. My program works fine in

  • 0

i am currently working on a program in jquery. My program works fine in firefox 3.5 but not until i upgraded my browser to firefox 4.0. Since then, the ‘parsererror’ never failed to show and it gives me a bad headache.

I’ve notice that this is the part of my code that FIRST ‘parsererror’ shows:

$(document).ready( function() { 
   ...

   $.ajaxSetup({
      timeout: 10000,
      error: function(xhr, msg, e) {
        showMessage('HTTP error: ' + JSON.stringify(msg) + '.'); //this is the parsererror
      }    
   });  
   .
   .
})  

And not only that, my dynamic tab no longer appear in my page. I notice that everytime if remove this line ‘<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>‘, it appears but my other jquery element is no good. I don’t know what’s wrong. Maybe it some sort of incompatibility issues, but i just dont where to start fixing. Please help.

EDIT:
this is the json it returned. This is supposedly for my dynamic menu that will create tab Evry menu you clicked. But this doesn’t show.

 [ 
      {"title": "File","submenus":[
         {"title": "Open","submenus":[]},         
         { "title": "New", "submenus":[]},
         { "title": "Save as", "submenus":[]},
         { "title": "Save", "submenus":[]}
      ]},
      { "title": "View","submenus":[]},
      { "title": "viewAll", "submenus":[]},
      { "title": "Close","submenus":[]},
      {"title":"jQgrid", "submenus":[]}  
 ]
  • 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-22T01:03:49+00:00Added an answer on May 22, 2026 at 1:03 am

    Description from jQuery Ajax’s error documentation

    error(jqXHR, textStatus, errorThrown)

    Function

    A function to be
    called if the request fails. The
    function receives three arguments: The
    jqXHR (in jQuery 1.4.x,
    XMLHttpRequest) object, a string
    describing the type of error that
    occurred and an optional exception
    object, if one occurred. Possible
    values for the second argument
    (besides null) are "timeout", "error",
    "abort", and "parsererror". When an
    HTTP error occurs, errorThrown
    receives the textual portion of the
    HTTP status, such as "Not Found" or
    "Internal Server Error." As of jQuery
    1.5, the error setting can accept an array of functions. Each function will
    be called in turn. Note: This handler
    is not called for cross-domain script
    and JSONP requests. This is an Ajax
    Event

    In your code you have

    JSON.stringify(msg)
    

    Looking at the jQuery docs, you will see that the second argument is a string and not a JSON object like you are expecting it to be. The parser is seeing the string and throws the parse error that you are seeing.

    Now if an error is occurring and the object is saying that there is an error. JSON requires that the name has double quotes around it. So people think:

    {
      foo : "bar",
      color : "red",
      num : 1
    } 
    

    is valid JSON, but it is not. The following is valid.

    {
      "foo" : "bar",
      "color" : "red",
      "num" : 1
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a program that has many of those the user SHOULD
i'm working with a multi-threaded program (using pthreads) that currently create a background thread
I'm currently working on a Win32 program which requires a main window containing many
I currently working on an issue tracker for my company to help them keep
I am currently working on a project and my goal is to locate text
I'm currently working on creating a new C# project that needs to interact with
I am currently working on a project with specific requirements. A brief overview of
The system I am currently working on requires some role-based security, which is well
I'm currently working at a small web development company, we mostly do campaign sites
The company I'm currently working for is using Selenium for Uniting-Testing our User Interface.

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.