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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:14:21+00:00 2026-05-27T23:14:21+00:00

I have called a ajax call for saving the data(140 sized characters) in to

  • 0

I have called a ajax call for saving the data(140 sized characters) in to database and then again have a ajax call in success function of the first call.
It is working fine in FF i,e when click that button it will be saved and then retrieved that data successfully(I need this data to show with timestamp). But in IE it is working fine only one time, means when click button the a set of data will be saved and then show ,but again click button saving another set of data, but not showing that data ,it is showing previous data. any solution my code is

function save(){
    $.ajax({
        url : 'saveNote.html?note=' + notes,
        success : function() {
            // showNote(); //this is also not working in IE
            setTimeout(function () { showNote(); }, 1000);
            document.getElementById('notes').value="";
        },
        error: function (xhr, ajaxOptions, thrownError) {
            alert('my error = ' + thrownError);
            alert('my error1 = ' + ajaxOptions);
            alert('my error2 = ' + xhr);               
        }
    }); 
}

function showNote(){
    $.ajax({
        url : 'getNote.html',
        method : "GET",
        dataType: "json",
        success : function(data) {
            responseNote=data;
            showLabel(responseNote);
        },
        error: function (xhr, ajaxOptions, thrownError) {
            alert('my error = ' + thrownError);
            alert('my error1 = ' + ajaxOptions);
            alert('my error2 = ' + xhr);               
        }
    });
}
  • 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-27T23:14:21+00:00Added an answer on May 27, 2026 at 11:14 pm

    IE is known to cache the AJAX requests. Thus subsequent request generates same output. There are a number of ways to overcome this problem. Here are some:

    Source: Viralpatel’s Blogs

    1. Attach random number with request

     $.ajax({
           url: url,
           data: inputs + '&ran=' + Math.rand(),
        )};
    

    2. Attach date with request

    $.ajax({
           url: url,
           data: inputs + '&time=' + new Date(),
        )};
    

    3. Disable jQuery cache

    $.ajaxSetup ({
        // Disable caching of AJAX responses
        cache: false
    });
    

    I’ll suggest you to use 3rd option.

    Hope this helps

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

Sidebar

Related Questions

i have an ajax function which gets called and returns json data. this function
I have a simple JS function that needs to get called when AJAX call
I have some jQuery code. I have called an Ajax function file, file.php, that
I have a controller that is called with AJAX (sends JSON data), so I
I have a session created which is null when called from an ajax call
I have a jQuery .ajax call: $j.ajax({ type: POST, url: /Services/Cart.asmx/UpdateQuantity, data: data, contentType:
I want to have a function called for every ajaxComplete call regardless of the
Suppose my javascript called server(AJAX call) and then got server response with an array
I have a java script function that i have called on body load mousemove()
I have a form with a submit button. I have called a function on

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.