Skip to main content
0 votes
1 answer
101 views

Given three files: view.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"...
Rhurac's user avatar
  • 1
1 vote
1 answer
61 views

I have 1 html (2cols, 6rows) and 12 ajaxs. Each ajax's result will be binding to its own (regardless of success or failure). Ajax will return 200 or 403. don't know at this time. ※IMPORTANT※ All ...
김동현's user avatar
0 votes
1 answer
73 views

I have got two JS functions, both return jQuery's promise. Let's say they are: getServerTimestamp() and, say, doSomething(). getServerTimestamp(), on its first call, basically gets the current time ...
user2526586's user avatar
  • 1,342
-1 votes
1 answer
82 views

I am trying to refactor jQuery promises with native promise for the below codes. public functionA(){ const dArray = Array<JQueryDeferred<{a:string}>>=[]; //other lines of logic ...
Itsme's user avatar
  • 65
0 votes
1 answer
127 views

I currently have some code using jQuery Deferred and ajax to call remote api and get the data and put in localStorage and get data from localStorage. This code seems buggy the first time it runs (i.e. ...
AJSwift's user avatar
  • 729
0 votes
1 answer
294 views

I'm trrying to call a function that loops through a dataset and updates values in that dataset from data that comes from an asynchronous function. I obviously need to know when that function completes ...
TheCarver's user avatar
  • 19.8k
0 votes
1 answer
387 views

I am having the below lines of code which is using JQueryDeferred object from the type definition class jquery.d.ts. Trying to replace jQuery deferred to typescript promise. Existing JQueryDeferred ...
Itsme's user avatar
  • 65
0 votes
1 answer
111 views

I'm working on a project that uses a custom user prompt using jQuery / jQuery UI: function dialog_confirm(dialog_body, dialog_title = 'Confirm') { var def = $.Deferred(); $('<div></div&...
osullic's user avatar
  • 612
0 votes
2 answers
174 views

How do I delete a previously assigned handler? var deferred = $.Deferred(); var callback = function(n) { console.log('Test ' +n); } deferred.progress(callback); deferred.notify(1); $(...
Надим Закиров's user avatar
0 votes
1 answer
151 views

I have a script which sends an array of numbers via Ajax to a web server. The values are used to query a database and then the corresponding values of those numbers In the table are sent back which I ...
4 Figure Creatives's user avatar
0 votes
0 answers
27 views

I have the following 2 functions: $(document).on(`dragover drop change`, `.fileUpload`, async function(e) { e.stopPropagation(); e.preventDefault(); const thisEl = $(this); if (thisEl....
Chris's user avatar
  • 818
0 votes
0 answers
42 views

I wish to call dealCardSelectableAI(), have it chooseCards(), then use the output to set an observable system.star.cardList(), then call setCardName(). Once all this is done I want saveGame() to ...
Quitch's user avatar
  • 89
0 votes
1 answer
104 views

I have a function which calls dealCardSelectableAI(), which sets up a number of jQuery deferred promises. The function setCardName() is then called from within it. Once both functions complete their ...
Quitch's user avatar
  • 89
0 votes
0 answers
23 views

I have a function processing an array, calling a function for each entry within the array with a Promise returned, and then finally returning that it's done. var dealCardSelectableAI = function () { ...
Quitch's user avatar
  • 89
0 votes
2 answers
95 views

I'm working in an ES5 environment using jQuery. I have some code as follows: var saveGame = function (gameState, saveStars) { var deferred = $.Deferred(); var starsSaved = saveStars ? false : true;...
Quitch's user avatar
  • 89

15 30 50 per page
1
2 3 4 5
77