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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:04:52+00:00 2026-06-09T06:04:52+00:00

Please can you help — why does this JSON not work the head of

  • 0

Please can you help — why does this JSON not work

the head of my page looks like this

<script src="Scripts/json2.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="Scripts/JScript.js" type="text/javascript"></script>

and my ajax looks like this

var p = { "myText": JSON.stringify(tableOBJ) };

$.ajax({
    type: "POST",
    url: "Default2AJAX.aspx",
    data: p,
    success: function (data) {

        var obj = JSON.parse(data);

    }
});

In firefox I get this error on the JSON

Error: syntax error
Source File: /Scripts/json2.js
Line: 4
Source Code:
<!DOCTYPE html>

In IE 7 I get JSON undefined

in ie 8 i get

SCRIPT1002: Syntax error json2.js, line 4 character 1

In ie 9 i get

SCRIPT1002: Syntax error json2.js, line 4 character 1

How do I fix this? as I have added json2.js but it appear if the browser doesnt need it it throws an error?

  • 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-09T06:04:54+00:00Added an answer on June 9, 2026 at 6:04 am

    There appears to be an error in the json2.js file you are using — at least IE 8 & 9 agree that an error exists on line 4 of that file.

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

Sidebar

Related Questions

Im a beginner to css, please can someone help me get this element to
I wonder whether someone can help me please. I'm using the following script to
When I upload the image it is showing this error please can u help
Please can anyone help me with this? I have 2 tables, location and tickets
Please can anyone help me out with this problem? This code below works perfectly
Please can somebody help me convert this MySQL query in to Entity Framework? Im
I'm confused with ASP.NET relative path, please can someone help? In a Master Page
Please can someone help sort a noob out? I've posted this problem on various
Please can you help me with this VS 2010 issue. This issue comes out
I was wondering if someone can please help me with a jQuery script. I

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.