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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:43:12+00:00 2026-06-09T13:43:12+00:00

This is my js. It is triggered by a button click and then calls

  • 0

This is my js. It is triggered by a button click and then calls for a web function.
The webfunction works correctly with no errors, but on the js noone of the .done or success or error prompts appear so i cannot debug why in the end it doesnt call the webfunction at all.

function updateTicket(TicketID) {

var strActualEffort = document.getElementById("txtActualEffort").value;
var fltActualEffort;

fltActualEffort = parseFloat(strActualEffort);

if (!isNaN(fltActualEffort)) {
    CalculateRisk(fltActualEffort);
    jQuery.ajax({
        type: "POST",
        url: "web function url",
        data: { ID: TicketID, Effort: fltActualEffort },
        success: function OnSuccess(e) { alert('SUCCESS!' + e); },
        error: function OnError(e) { alert('Failed coz : ' + e); },
        complete: function OnComplete() { alert('COMPLETE'); }
    }).done(function (data) {
        alert("success" + data.slice(0, 100));
    }).fail(function () {
        alert("error");
    }).always(function () {
        alert("complete");
    }); 
}

}

any ideas?

  • 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-09T13:43:14+00:00Added an answer on June 9, 2026 at 1:43 pm

    Issues Fixed.

    The ajax wasnt doing anything because using IE the window closed before the actual web method was called.

    Solved it by setting the ajax function call as asynch.

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

Sidebar

Related Questions

I want to trigger on click of a button this: <asp:Button runat=server ID=submit Text=Submit
Hi I have this simple method which gets triggered when i click inside a
On the click of a button, I call a JavaScript function. After getting the
Why does this trigger work (Changing the foreground of the button to Red when
I got a C# program which opens a EventWaitHandle like this to get triggered
$(':input[type=text], textarea').change(function(){ if(($(:input[type=text]).val()!=) && $(textarea).val()!=){ $(:submit).removeAttr(disabled); $(:submit).removeClass(disabled); $(:submit).addClass(success); } }); This function is triggered
I was using this routine, triggered by the Worksheet_Change event, to display a selected
I am using this method - (void)keyboardWillShow:(NSNotification *)notification that is triggered when the keyboard
We have a application which is triggered from browser. This application consumes around 800
this example below works when hover event is trigered and when its not, its

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.