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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:09:31+00:00 2026-05-24T00:09:31+00:00

I have a function for doing ajax calls (line numbers supplied): 9 function doAjax(url,

  • 0

I have a function for doing ajax calls (line numbers supplied):

9 function doAjax(url, args){
10    var retVal;
11    retVal =   $.ajax({  
12                    type: "GET",
13                    url: url,
14                    data: args,
15                    async: false,
16                }).responseText;
17    if(retVal==null || retVal=="")retval=99;
18    return retVal;
19 }

When I use IE8, I get an error stating:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET4.0E)
Timestamp: Mon, 25 Jul 2011 17:45:36 UTC

Message: Expected identifier, string or number

Line: 17

Char: 21

Code: 0

URI: local host web server

This script works perfectly fine with FireFox. Being a novice, I am at a loss as to why this is generating an error. Can anyone point me in the right direction?

  • 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-24T00:09:32+00:00Added an answer on May 24, 2026 at 12:09 am

    Try taking out the comma after

    async: false
    

    Putting a comma after the last member of an object can cause IE to freak out.

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

Sidebar

Related Questions

I have this ajax call to a doop.php . function doop(){ var old =
I have an MVC3 application doing AJAX edit of a grid line using JQUERY
I have a very simple CLR Function for doing Regex Matching public static SqlBoolean
I have a function thats the main bottleneck of my application, because its doing
I have a Python function in which I am doing some sanitisation of the
I have an AJAX controller that handles all of the AJAX related calls on
I have a function which makes an AJAX request to a server and returns
let's say I'm doing 3 ajax calls and I want to wait for the
I know that the huge advantage of doing AJAX calls is that the rest
To have an indicator while doing an ajax request, I got information saying that

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.