Questions tagged [jquery-3]
New features of jQuery 3.0 or changes in behaviour from jQuery 2.x to jQuery 3.x. Always use together with the [jquery] tag.
jquery-3
91
questions
0
votes
1
answer
472
views
Alternate stylesheet switching in both Chrome and Firefox
I'm encountering some weird inconsistent behavior between Chromium 53 and Firefox 49 when switching between stylesheets.
My stylesheets are added like this:
<link class="alternate-style" rel="...
4
votes
1
answer
2k
views
How to abort a jQuery 3.0 AJAX request?
How to abort an AJAX request in jQuery 3.0?
this.r = $.ajax();
The promise does not have a abort method like in older jQuery versions
if(this.r && this.r.state() == 'pending')
{
this.r....
1
vote
0
answers
856
views
Load JQuery 3.1 into a Chrome extension?
My Bad: I had webpack for an angular aspect of this project, mangling my JQuery
I am getting an error "$ is not defined" when I am working on my chrome extension.
I can get it working OK for JQuery ...
0
votes
1
answer
3k
views
Unsupported Media Type when Posting JSON data to API using JQuery
I am posting data to an API using JQuery 3 as follows:
$.post({ url: "api/questions", data: { content: "Content" }, dataType: "json" })
.done(function (data, status, xhr) {
console.log(message);...
6
votes
1
answer
2k
views
jQuery's function $(function())’s execute order when the $(function()) called more one times
Code like this:
$(window.document).ready(function () {
window.alert('alert 1');
});
$(function () {
window.alert('alert 2');
});
$(function () {
window.alert('alert 3');
});
<!...
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();
...
0
votes
0
answers
486
views
jQuery.offset not working correctly in chrome anymore in version 3.1.0
jquery.offset always returns 0/0 when applied to an SVG element in chrome.
<div style="margin: 45px;">
<svg version="1.1" width="100" height="100" xmlns="http://www.w3.org/2000/svg">
...
0
votes
1
answer
2k
views
How to get viewport size in jquery-3?
$(window).height() used to return the height of the browser viewport window, and $(window).width() was used for browser window width.
$(window).height() now just returns the same value as $(document)....
1
vote
3
answers
3k
views
JQMIGRATE: easing function "jQuery.easing.swing" should use only first argument
I am upgrading my JQuery V1.9.1 to V3.0 and I am using the "jquery migrate 3.0".
I have this warning in my Console :
JQMIGRATE: easing function "jQuery.easing.swing" should use only first argument
...
0
votes
0
answers
140
views
How to correctly run code after a function has been completely executed in jQuery?
I am using a fullscreen CSS-preloader that should be removed completely from the site once the window has been completely loaded AND the function checkRetinaHeader() has been fully executed. The site ...
0
votes
0
answers
37
views
Window on load not triggering reliably inside document ready function - jQuery v3.1.0 [duplicate]
I built a simple css preloader that should fade out with jQuery once the page has been completely loaded with all images etc.:
$(document).ready(function() {
// Preloader
$(window).on('load', ...
7
votes
0
answers
3k
views
i have an error message in jQuery.readyException
i want update jquery to lately version
so i was replace 1.11.0 with 3.1.0
but it is not working
i have an error message
'unexcepted exception in Lib/js/lib.jquery.js, 'safari' is not undefined'
...
4
votes
1
answer
2k
views
Why is my 'load' event/function not beeing executed after switching to jQuery 3?
Since I've upgraded from jQuery 1.x / jQuery 2.x to jQuery 3.x, my existing code will not be executed correctly anymore. Everything works fine, but the load event listener gets not triggered anymore ...
3
votes
1
answer
448
views
JQuery3.0 throws error setting a property that has only a getter firefox
I have created SVG circle dynamically and animated it small circle to large using JQuery. Animation was working fine in other JQuery version and throws exception "setting a property that has only a ...
5
votes
2
answers
2k
views
Zurb Foundation 5 and Jquery 3 incompatible?
I am trying to use Zurb Foundation 5 with JQuery 3.0.0.1 and seem to be having some compatibility issues. When I initialize Foundation $(document).foundation(); a javascript error is thrown
Object ...