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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:00:28+00:00 2026-05-28T13:00:28+00:00

I got the following insistent JS issue just for IE 8-9, in other browsers

  • 0

I got the following insistent JS issue just for IE 8-9, in other browsers my code working very well.

Case:
I have the following code in JS, which should start some server process and update progress bar with status on server side, what Jquery UI provide:

 $("#btnSendUser").click(function (event) {                
                $.ajax({
                    type: "POST",
                    url: "/StartLongProcess",
                    dataType: "json",
                    traditional: true,
                    data: { userIds: users },
                    success: function (result) {
                        console.log("Process start");
                    }
                });
                var processId = 0;
                getStatus(processId);
            });

        function getStatus(processId) {
            var url = '/GetStatus';
            $.get(url, { clientProcessId: processId }, function (data) {
                if (!data.IsDone) {
                    $("#progress").progressbar({ value: data.Progress });                                        
                    window.setTimeout("getStatus(" + processId + ")", 350);
                }
                else {
                    $("#progress").progressbar({ value: 100 });      
                    console.log("Done");                                                            
                };
            });                                  
        }

In StartLongProcess method in current controller I starting long server process in this way:
..

[ValidateInput(false)]
        public void StartLongProcess(Guid[] userIds)
        {       
            ...
            var processTask = new LongProcess(MesssageService.Email.SendMails);
            processTask.BeginInvoke(service.LongProcess(userIds), new AsyncCallback(EndSendingProcess), processTask);
        }

Method that read current status is next:

 /// <summary>
        /// Gets the current progress.
        /// </summary>
        /// <param name="id">The id.</param>
        public JsonResult GetCurrentProgress(int clientProcessId)
        {
            ControllerContext.HttpContext.Response.AddHeader("cache-control", "no-cache");
            var currentProgress = MesssageService.Email.GetCurrentLog(clientProcessId);            
            return Json(currentProgress ?? new LogMessage(0), JsonRequestBehavior.AllowGet);
        }

I tested this code in Chrome and FF, in those browsers progress bar and process finished correctly always. But in IE 8-9 it looks like getStatus function can’t be called in this way. Is it true? What is the best way to implement my task for all browsers?
Thanks.

  • 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-28T13:00:30+00:00Added an answer on May 28, 2026 at 1:00 pm

    @cleric Can always try

    window.setTimeout(function() {getStatus(processId)},350);
    

    rather than

    window.setTimeout("getStatus(" + processId + ")", 350);
    

    . – Anthony Grist Jan 18 at 22:50

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

Sidebar

Related Questions

I have got following code: I have a enum: public enum HardwareInterfaceType { Gpib
I have got following code witch are sending xml file on HTTP protocol and
I got following test case below and have a question to it. Why does
I have got following django code for Formwizard in python. First there are two
Say I have got following two case class es: case class Address(street: String, city:
I got following code in an XHTML-document and every browser saysit is malformed :(
I got following code from net and it looks everything is proper but i'm
I've got following code in my AsyncTask. The only thing I want the AsyncTask
I've got following method in a class, which is a custom adapter for an
I've got following problem: (c#) There is some class (IRC bot), which has method,

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.