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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:35:07+00:00 2026-05-16T15:35:07+00:00

I upgraded my jQuery version to 1.4 from 1.3. My code worked fine in

  • 0

I upgraded my jQuery version to 1.4 from 1.3. My code worked fine in 1.3, but it doesn’t in 1.4. What can I have done wrong?

function add_product_to_shopping_cart( product_id )
{
    $.post("/actions/etrade/add_product_to_cart",
    {
        'product_id': product_id,
        'variant_first': $('#main_variant-'+ product_id ).val(),
        'variant_secound': $('#secound_variant-'+ product_id ).val(),
        'stock': $('#stock-'+ product_id ).val()
    }, function(data) {
        if ( data.err == 0 )
        {
            $('#cart_count').html( data.item_count );
            $('#cart_price').html( data.cart_total_price );
            $('#cart_shop_more').fadeIn();
        }
        else
        {
            alert( data.err_msg );
        }

        alert('test');
    },"json");  
}

Thanks a lot all for helping me 🙂

  • 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-16T15:35:07+00:00Added an answer on May 16, 2026 at 3:35 pm

    In jQuery 1.4+ your JSON has to be valid, it’s a lot stricter about this. Check the server response you’re getting in Firebug, Chrome, Fiddler, or any other tool and see if it’s valid here: http://www.jsonlint.com/

    If it’s not, this is a server-side problem, make sure you’re outputting valid JSON 🙂

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

Sidebar

Related Questions

I have upgraded a MS Visual Studio Application from VS 2003 to VS 2008
I just upgraded jQuery to version 1.4.2 and I am now getting an error
I recently upgraded from loading JQuery 1.4.4 to 1.5.0 with Google CDN. When I
We are using jquery validation plugin in our project. Recently we have upgraded our
just upgraded from jquery 1.4.2 to 1.4.4 and i've encountered a performance problem which
I have been getting some weird errors when I upgrade jQuery from 1.4.4 to
I am upgrading from jQuery 1.3.2 to jQuery 1.5 and I can't get JSON
I upgraded from SQl server 05 to 08 and had a few issues. After
I upgraded a Rails application from 2.1.0 to 2.2.2 using rake rails:update . This
I have recently upgraded some of my web applications to ASP.NET 3.5 by installing

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.