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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:56:02+00:00 2026-05-21T17:56:02+00:00

I make the following JQuery(v1.5.1) Ajax call: function testAjaxCall() { $.ajax( { url: /Search.ashx?,

  • 0

I make the following JQuery(v1.5.1) Ajax call:

function testAjaxCall()
{
  $.ajax(
    {
        url: "/Search.ashx?",
        dataType: "json"
    });
}

This call returns the following JSON result:

{ "objectData" : "100" }

But in IE9 it fails with the following error (it works fine in other browsers):

SCRIPT1004: Expected ‘;’
debug.finance.com, line 1 character 16

If I remove the dataType:json parameter, the call succeeds. Any idea what is wrong? I assume my JSON is incorrect, but I passed it through a validator and it did not report any errors.

Please help!

EDIT: (more detail)

I output JSON from the server in an ASP.NET HTTP Handler as follows:

public void ProcessRequest(HttpContext context)
{
    context.Response.ContentType = "application/json";
    context.Response.Write("{ \"objectData\" : \"100\" }");
    return;
}
  • 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-21T17:56:03+00:00Added an answer on May 21, 2026 at 5:56 pm

    I figured out what the problem was thanks to this (slightly unrelated) post: jQuery 1.5 AJAX call fails with "invalid label" for JSON requests

    The culprit was jquery.validate which was not 100% compatible with JQuery v1.5. As soon as I deleted it IE9 works perfectly!

    I upgraded to jquery.validate v1.8 and everything is working beautifully now.

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

Sidebar

Related Questions

I'm using jQuery (1.7.0) to make a json/ajax call to Spotify. The following code
I have the following jQuery script: $(document).ready(function() { $.ajax({ url: 'temp.ajax.php', type: 'GET', success:
I have the following code: $.ajax({ type: POST, url: url, data: sendable, dataType: json,
I make an ajax request using jquery, this calls the following spring controller: @RequestMapping(value
How to make the following table into a JSON string in jquery/javascript? <table> <thead>
I have the following JQuery AJAX call that sends HTML form data to my
I am executing the following jquery ajax call to an asp.net mvc controller which
I would like to have a function that returns the repsonseText of a jQuery.ajax()
I'm trying to make a jQuery .ajax() call to a public web service, and
Doing following in jQuery: $('#signupbox1').on('click', '#signup1', function() { var str = $('#signupform').serialize(); // make

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.