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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:52:22+00:00 2026-06-01T04:52:22+00:00

The following code is a very simple ajax call to server that alerts back

  • 0

The following code is a very simple ajax call to server that alerts back on success and complete events.

From a reason I cannot understand on my development machine it works fine and alerts on success and complete but on server it never alerts on success. WHY ???

**

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function dummy() {
            $.ajax({
                url: 'services/chatEngine.asmx/dummy',
                async: true,
                type: "POST",
                complete: function () { alert('Done'); },
                success: function (a, b, c) {
                    alert('Success');
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </ajaxToolkit:ToolkitScriptManager>
        <div id="userList">Users:<br /></div>
        <input id="Button3" type="button" value="dummy" onclick="dummy()" />
    </div>
    </form>
</body>
</html>

**

The server side dummy function returns nothing, code follows –

<WebMethod(True)>
Public Function dummy() As String
    Return ""
End Function
  • 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-01T04:52:24+00:00Added an answer on June 1, 2026 at 4:52 am

    You need to find out where the failure is.

    1) Is the client making the request? Use your browsers developer tool request monitor or something like Charles to look at the request data. make sure the URL is correct.

    2) Is the server getting the request? Use server logs or attach a debugger to verify the request is received.

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

Sidebar

Related Questions

I'm programming a very simple socket server following this sample code . The server
the following code is very simple, but for some reason, for-loop does not iterate
I have the following PHP code doing a very simple select into a table.
I have got the following very simple code: function init() { var articleTabs =
I am trying to teach myself MySQL/PHP from the very beginning. The following code
The following code works (and it's very simple): class Scrape(QApplication): def __init__(self): super(Scrape, self).__init__(None)
I'm currently diving into node.js stuff starting with very simple examples. The following code
I have a very simple problem. I'm trying to make an ajax call using
The following code is pretty self-explanatory and my question is very simple : Why
The following Java code is a very simple piece of code, but what are

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.