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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:36:42+00:00 2026-05-22T00:36:42+00:00

I am having a shopping cart text update issue on an ASP.NET MVC2 ecommerce

  • 0

I am having a shopping cart text update issue on an ASP.NET MVC2 ecommerce site. When a user wants to add an item, a user control pop-up allows them to choose certain options and then click on “add to cart”.

  $(document).ready(function () {
        $('#sizeselectform :radio:first').attr('checked', 'checked');

        $('#sizeselectform').ajaxForm(function () {
            $('#sizeselectform').parents('div.popup').children('a.close').click();
            UpdateCartCount();
        });

    });

The UpdateCartCount function just updates the count of items in a shopping cart:

function UpdateCartCount() {
    $.ajax({
        type: "GET",
        url: "/ShoppingCart/GetCartItemsCount/",
        success: function (result, status, xmlHttpRequest) {            
            $('#cartItemCount').text(result);
        },
        error: function (xmlHttpRequest, status, e) {
            var errorMessage = 'Login: ' + xmlHttpRequest.status + ' - ' + xmlHttpRequest.statusText;
            $('#loginErrorMessage').html(errorMessage).show();
        },
        complete: function (xmlHttpRequest, status) {

        }
    });    
}

Everything works fine in Chrome, Firefox,etc except IE7. I suspect that the cart count is not updated in IE7 because the parent div is closed before called the UpdateCartCount() function but at this point I am not sure. Any suggestions?

Thanks,

EDIT:

I changed the call to POST, added a cache: ‘false’, content-type: ‘application/text’, and finally a random number to the URL to prevent caching (all suggested solutions to this IE issue)…and the ajax calls finally started working in IE.

  • 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-22T00:36:43+00:00Added an answer on May 22, 2026 at 12:36 am

    I changed the call to POST, added a cache: ‘false’, content-type: ‘application/text’, and finally a random number to the URL to prevent caching (all suggested solutions to this IE issue)…and the ajax calls finally started working in IE.

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

Sidebar

Related Questions

I'm creating shopping cart and I'm having one problem: When someone orders an item
I'm trying to create a basic shopping cart, having an issue with the product
I am having an issue with the totals on my custom paypal shopping cart.
I'm having an issue with ASP.NET's session variables and a web service proxy object.
Here's the problem I'm having in my asp project. My shopping cart consists of
I'm using Prestashop as my ecommerce shopping cart and CMS solution and was having
First time making a PHP/XML shopping cart and am having trouble with the update
I have the following scenario: The user has an on-site shopping cart where he
I'm creating a shopping cart application and I'm having some issues with implementing a
I am designing the database for a shopping cart and I am having trouble

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.