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.

The third major release of the jQuery library ([jQuery]) has been worked on for a long time and contains some major changes. There is no official release yet, only an Alpha and a Beta version.

See

90 questions
245
votes
5 answers

jquery 3.0 url.indexOf error

I am getting following error from jQuery once it has been updated to v3.0.0. jquery.js:9612 Uncaught TypeError: url.indexOf is not a function Any Idea why?
Kamrul
  • 7,175
  • 3
  • 31
  • 31
48
votes
3 answers

What is slim in file.slim.js

Excuse my ignorance but I just installed jQuery using npm and between the jQuery files there's a file called jquery.slim.js, what is slim? I know the min stands for minified but slim is new to me!. btw I'm pretty sure slim is not like min because…
Khaled Al-Ansari
  • 3,910
  • 2
  • 24
  • 27
16
votes
1 answer

jQuery 3 slim ajax basic example

I'm new to jQuery 3. The following is a basic fiddle, working with previous versions of jQuery, but does not work with jQuery 3 $(function() { $.ajax({ url: '/echo/json', type: 'GET', dataType: 'json', success:…
Maxime Freschard
  • 1,066
  • 2
  • 15
  • 26
11
votes
3 answers

Bootstrap-Datetimepicker not working with the jQuery 3

Bootstrap-datetimepicker is not working with jQuery 3.1.1. I need to use the same jQuery library to run all the other dependent functions.
Karan Batra
  • 161
  • 1
  • 2
  • 10
7
votes
1 answer

Async/Await with JQuery document READY

It works with document.addEventListener("DOMContentLoaded", async () => {}) but I am curious of making it work with JQuery. And also, I want with Async/Await, not promises because later I will need the variable outside of promise callback. let…
Venda 97
  • 225
  • 2
  • 10
7
votes
0 answers

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' this error is appeared in jquery.readyException how…
Hee
  • 73
  • 1
  • 9
6
votes
1 answer

TypeError: $.ajax(...).done(...).fail(...).complete is not a function

I suddenly started getting the following: TypeError: $.ajax(...).done(...).fail(...).complete is not a function My code: this.sendRequest = function (type, extension, data, successCallback, successMsg, failMsg, failCallback) { var…
BLAZORLOVER
  • 1,971
  • 2
  • 17
  • 27
6
votes
1 answer

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'); }); …
MayGodBlessYou
  • 649
  • 6
  • 19
6
votes
2 answers

jQuery.fn.load() is deprecated?

jQuery.fn.load() is deprecated in jquery 3.X.X? I'm making a mess with documentation. mycode is: $("#myDiv").load('mypage.html'); How I can load mypage.html into #myDiv?
user2940867
5
votes
2 answers

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 doesn't support property or method 'indexOf' on…
John S
  • 7,909
  • 21
  • 77
  • 145
4
votes
0 answers

Debugging exceptions with jQuery 3.0

I recently upgraded from jQuery 2.4.1 to 3.2.1, and now I'm noticing that any exception that occurs during document ready handling (inside $(function() { ... })) instead of giving proper traceback and allowing me to inspect local variables/call…
riv
  • 6,846
  • 2
  • 34
  • 63
4
votes
1 answer

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); return exists; } invoked inside another…
4
votes
1 answer

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.abort(); <- error not working }
pokahotass
  • 97
  • 5
4
votes
1 answer

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 or just sometimes: $(function() { …
eisbehr
  • 12,243
  • 7
  • 38
  • 63
3
votes
1 answer

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:
and js: $.get('...', function(){ $('#scripts') …
Omu
  • 69,856
  • 92
  • 277
  • 407
1
2 3 4 5 6