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

The Archive Base Latest Questions

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

I have written a jquery ajax function that I have added to js file

  • 0

I have written a jquery ajax function that I have added to js file

I am using mvc3 as my server technology. my controller is getting hit with the data expected and I am able to debug through my controller code and nothing goes wrong there.

However the success event is never hit and everytime only the error function is ever called.

function processTransaction(json, et, ta, cardId, id, url, insertId) {
    $.ajax({
        url: url,
        type: "POST",
        data: { insertId: insertId, amount: ta, cardId: cardId, type: et, Id: id},
        success: function () {
            console.log("sweeeeet");
        },
        error: function (e) {
            console.log(e);
            console.log("fail");
        }
    });
}

Is there something blinding that im doing wrong?

I have added an image of the full error from the developer console.

enter image description here

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

    Is there something blinding that im doing wrong?

    Your client code is valid!
    You get an exception on the server.

    Change the last line of your controller action to see what is going on:

    var x = Json(...); // You will get an exception here...
    
    return x;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a simple jQuery.ajax function which loads a user control from the
I have written jQuery code, in files Main.html and ajax.php . The ajax.php file
I have written a form using the jQuery .post() function to post the data
I have written a cascading drop down list using JQuery. The code that I
i'm using jQuery for sending ajax requests to the server, but i have some
i am using ajax with jquery .i have written this code: $.ajax({url:myurl.php, data:datastr, type:POST,
I have written some code using jQuery to use Ajax to get data from
I have written some jQuery ajax code where I am sending a request to
I have a modal dialog plugin written in jquery, that binds to the click
I have written an AIR Application that downloads videos and documents from a server.

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.