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
1
vote
1 answer

Jquery load anonymous?

Im a little bit confused now. Because I read all other answers but none is like my case. I manage to always get working my preloading gif using simple jquery load function. But now even though all my code is the same Im getting this error... Like if…
1
vote
2 answers

Error code in jquery-3.0.0.min.js

I'm not sure it's an error, but when I tried to change the version 3.0.0 to version 2.2.3, it's working fine. I'm making a demo with signalr, like this: In the html: //
Tân
  • 1
  • 15
  • 56
  • 102
1
vote
3 answers

How to test if jQuery 3.0 beta is Promises/A+ compatible in browser?

According to jQuery 3.0 Beta Released jQuery.Deferred is now Promises/A+ compatible jQuery.Deferred objects have been updated for compatibility with Promises/A+ and ES2015 Promises, verified with the Promises/A+ Compliance Test Suite. How To…
guest271314
  • 1
  • 15
  • 104
  • 177
1
vote
0 answers

Jquery nav bar hider script using lot of resources and generating console errors on Jquery 3 beta

I have this navbar hider script for handheld devices: function bindNavUp() { var lastScrollTop = 0, delta = 5; $(window).on('scroll', function() { var st = $(this).scrollTop(); if(Math.abs(lastScrollTop - st) <= delta) { return; …
Lanti
  • 2,299
  • 2
  • 36
  • 69
1
vote
1 answer

jQuery 3.0 promises

What do you think about the following? var starter; starter = $.Deferred(); starter.then(function () { console.log('promiseOne done'); }); starter.resolve(); var now=new Date().getTime(); var stop=now+5000; while (stop>new…
Unknown developer
  • 5,414
  • 13
  • 52
  • 100
1
vote
1 answer

Will the .done method still be supported for jqXHR objects in jQuery 3.x?

I have noticed throughout my JavaScript code that AJAX requests are often performed using the following jQuery 2.x pattern: $.ajax({ ... }) .done(function (data) { ... }); where the code found within the done method is to be executed…
Matthew
  • 777
  • 1
  • 9
  • 23
0
votes
1 answer

Set attribute with an empty string

I'm trying to toggle the required attribute on fields using jQuery. On page load I add the required attribute to the relevant elements: $("[data-required]").attr("required", ""); Then I have a toggle function that does a number of things, including…
kait
  • 305
  • 2
  • 3
  • 11
0
votes
1 answer

jquery 3.0.0 upgrade broke html table functonality

We are upgrading jquery from 1.8.2 to 3.0.0 in a legacy project which have many plugin. We are using migrate plugin for ease of up-gradation ,it not showing any error in console except couple of unrelated deprecation warning message.So I inspect one…
jasim
  • 268
  • 1
  • 5
  • 16
0
votes
2 answers

$.trim().val is not a function

I am working on updating jQuery version of our applications from jquery version 1.7 to 3.6 so, I am facing issue with 'trim' method. we have used trim method like in old jQuery version but it has changed in latest jQuery 3.6 so, I have modified it…
Prasad Patel
  • 707
  • 3
  • 16
  • 53
0
votes
1 answer

Hi, I am using Drupal 9 and on a request in network tab jQuery 3.5.1 sends another contextual render call. Any reason of this call?

I am using Drupal 9 and on a request in network tab jQuery 3.5.1 sends another contextual render call. Any reason of this call?
M Arif
  • 411
  • 5
  • 10
0
votes
1 answer

Run inline jQuery after jQuery-library is fully loaded at the bottom of the document?

I have a big inline jQuery function that I want to trigger after the jQuery library is loaded at the bottom. Otherwise I'd get the "Uncaught ReferenceError". Therefore I wrapped the function into a timeout-function - which works, but only as long as…
0
votes
3 answers

Retrieve Json Data as a IEnumerable

Goal: Send a json data with many data from frontend to backend. Problem: When I send the data to the backend i do not retrieve it as a IEnumerable What part of the code am I missing? Info: *Using JQuery as a frontend *Using Asp.net mvc as a…
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145
0
votes
0 answers

Javascript, Jquery 3 - Run get request before anything else

At the beginning of the file I have the following code: $.get( "/users/getInfo", "json" ).done(function(data){ window.User = data }) import './components/map' import './components/search' import './components/jobs' import…
Sasha
  • 8,521
  • 23
  • 91
  • 174
0
votes
2 answers

jQuery change event being fired twice

I have a form with input fields including a date. Below is my code;
0
votes
1 answer

Carousel control not working in bootstrap version 4

I am using bootstrap version 4. But My Carousel control is not working. Am I missing any thing? Same below code is working perfectly fine If i change version to 3.4 Please help me here. PFB are JS files I included. Same JS files are working fine if…
Avinash
  • 2,053
  • 2
  • 14
  • 32