All Questions
Tagged with jquery-3 jquery-deferred
5
questions
3
votes
1
answer
255
views
unlike jquery 1 and 2, jquery 3 ajax handler is executing newly added html+js only after completing handler code
I've made a jsbin to show the problem:
http://jsbin.com/dexeqiz/edit?html,js,output
having this html:
<div id='log'></div>
<div id='scripts'></div>
and js:
$.get('...', ...
1
vote
1
answer
110
views
Order of thrown errors?
I have a function that upon error (for example "timeout") is supposed to throw an error, which I catch at the end of the promise chain.
var createOrder = function (id) {
Utility.toggleProgressBar(...
4
votes
1
answer
12k
views
jQuery.Deferred exception: The string did not match the expected pattern
I've a little headache with this console error, ONLY on Safari (working on MacBook actually).
I have this function:
function exists(element){
var exists = document.querySelector(element);
...
0
votes
2
answers
342
views
Progress on jQuery 3 $.when with multiple deferreds
In jQuery 3 (see issue) it looks like progress on $.when changed behaviour. I'm looking to get a progress notification when each of my deferreds is resolved:
var urls = [
'https://httpbin.org/...
0
votes
1
answer
152
views
Why is this converted to an array using .apply() with jQuery.when and jQuery.Deferred.resolveWith?
Using jQuery 3.0.0, given
$(function() {
var n = 5;
function jQueryWhenApplyResolveRejectWith(n) {
var arr = $.map(Array(5), function(_, i) {
return $.Deferred();
...