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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:18:44+00:00 2026-06-04T06:18:44+00:00

So, I have an ajax post that calls a service and returns an object

  • 0

So, I have an ajax post that calls a service and returns an object which I want to parse on success.

I am running this in vs2010, it only works when I step through the ajax post code and it only works part of the time.

This call is basically identical to other pages that I have done so I am really troubled as to why this is not working.

$.ajax({
                type: "POST",
                url: webMethod,
                data: parameters,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (obj) {
                    alert("Success");
                    parseStart(obj.d, id, idnum, parseType);
                },
                error: function (e) {
                    alert("Failure. :" + e);
                }
            });

It is really standard, I am not sure why it is doing this. I am just hoping someone has experienced something like this before. Like I said it only goes through if I step through the ajax code and then it gets to the success. If I do not step through it is as if it just never hits success or failure….. It is really strange. (so I do not see my alerts etc if I do not step through it) I had a suggestion that it was possibly the size of my object that I was returning from my service so I trimmed that down to close to nothing and that did not help either.

Any thoughts directions on this are greatly appreciated. I am currently stumped.

  • 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-06-04T06:18:45+00:00Added an answer on June 4, 2026 at 6:18 am

    Ok, after long long troubleshooting on this. I switched the button call to the body onload versus a click of the button upon doing this it works without error. This was due to me using an asp button that was producing a call back on click breaking my post. I then removed my asp buttons and replaced these with an input button.

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

Sidebar

Related Questions

I have this code that works well: {livre:empty_name} $.ajax({ url: sent.php, type: post, dataType:
I'm running a weird issue here. I have code that makes jquery ajax calls
I have a AJAX post method that gets xml data from server. But when
Hey guys, I have a program that uses ajax to send a post to
I have grabbed some XML data using this piece of jQuery: $.ajax({ type: POST,
I have this jQuery script var dataString = class_id=+class_id; $.ajax({ type: POST, url: page.php,
I am using the post and get methods for Ajax calls, and have a
I want to post data to a web service with ajax. there is my
I have a asmx web-service that returns a list of countries for a continent.
I have an issue I have this jQuery code: $(document).ready(function(){ $(#follow).click(function(){ $.ajax({ type: 'POST',

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.