Skip to main content

Questions tagged [jquery-migrate]

jQuery Migrate can be used to detect and restore APIs, features or functionality that have been deprecated in jQuery and removed as of version 1.9.

jquery-migrate
0 votes
0 answers
146 views

jQuery is not compatible with Quirks Mode - for DTD html 4.0 transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I have below tag in my aspx page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> When I did jquery migrate , I am getting jQuery is not compatible with Quirks Mode I ...
0 votes
0 answers
121 views

Migrate jquery 1.7.1 to 2.2.4 and $(document).foundation();

I got this in the console in the Chrome browser. Snapshot of the console i Chrome I'm trying to upgrade jquery 1.7.1 to 2.2.4 in my mvc site and I use Foundation 5. I have already got some tip about ...
2 votes
1 answer
3k views

"Jquery is undefined" while migrating from jquery 1.12.4 to 3.5.1

I'm working on upgrading a web-app that uses jquery-1.9.1, jquery-ui-1.10.3, runs on a JBoss AS 7.0 server and uses Internet Explorer-11. I need to upgrade jquery to the latest version, which is ...
0 votes
1 answer
291 views

Update Javascript library JQuery Migrate from version 1.x to latest stable version 3.4.0

I am currently working on a code which has Javascript library Jquery Migrate which currently uses version 1.4.1. Can someone guide me how can I update the Jquery Migrate library to version 3.4.0 ?
2 votes
1 answer
670 views

Confusion around multiple jQuery versions, .noConflict, and jQuery migrate

I have a project that is a massive website, and I was brought in to make the website responsive. I went with bootstrap for the framework, and quickly ran into issues with the jQuery version being used ...
5 votes
4 answers
4k views

How to load jQuery Migrate for jQuery via RequireJS?

Can I load jQuery migrate via RequireJS? I don't understand how the timing can be handled correctly. See this example: require([ 'jquery', 'jqmigrate' ], function ($) { if ($.browser.msie) {...}...
0 votes
2 answers
1k views

$.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 ...
0 votes
1 answer
405 views

No warning from jquery Migrate plug-in when using removeProp() incorrectly

Before I explain the issue let me tell you I am clearly aware that jQuery removeProp should not be used on native properties such as disabled, checked and selected. https://api.jquery.com/removeProp/ ...
0 votes
1 answer
999 views

I can’t remove jquery-migrate (wordpress)

I’m trying to remove jquery-migrate.min.js. I tried these codes. //Remove JQuery migrate function remove_jquery_migrate( $scripts ) { if ( ! is_admin() && isset( $scripts->registered['...
1 vote
1 answer
2k views

Shouldn't we use jQuery Migrate in production environment?

I found the website below saying that jQuery Migrate should not be used in production environment. https://forum.jquery.com/topic/jquery-migrate-plugin-in-production I looked for the information for ...
1 vote
0 answers
240 views

Does jQuery still have XSS vulnerabilities when we upgrade the version with jQuery Migrate and do not replace the deprecated methods?

The website below says that jQuery Migrate restores the deprecated methods which older jQuery has. https://github.com/jquery/jquery-migrate Does jQuery still have XSS vulnerabilities when we upgrade ...
2 votes
1 answer
2k views

jQuery Migrate Plugin showing Errors

As per my knowledge, jQuery migrate restores the APIs that were removed, and shows warnings in the browser console when removed and/or deprecated APIs are used. "That way you can spot and fix what ...
12 votes
4 answers
23k views

How do I stop WordPress loading jQuery and jQuery-migrate?

WordPress is loading the following 2 files in wp_head(): <script type='text/javascript' src='http://example.com/wp-includes/js/jquery/jquery.js?ver=1.10.2'></script> <script type='text/...
2 votes
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 ...
2 votes
1 answer
636 views

How to find the source of the jQuery error?

I have a page which references jQuery 3.3.1, jQuery-Migrate 1.4.1 and Bootstrap 3.3.7. When I click anywhere on the page, I get the following error in the console: jquery-3.3.1.js?v=2018.8.0.1-...
3 votes
0 answers
3k views

Migrating jQuery from 1.12.3 to latest 3.5.1

I am in the process of upgrading jQuery from 1.12.3 to 3.5.1(latest version). My application is large and we have jQuery version 1.12.3. While upgrading with help of jQuery migration script, have ...
2 votes
1 answer
16k views

jQuery upgrade from 1.8.3 to 3.5.1

i know the following is written in the https://jquery.com/upgrade-guide/3.0/ site. but sadly it's confusing to me. Use the following steps to upgrade from a version of jQuery older than 1.11.0 or 2.1....
0 votes
1 answer
2k views

Does jquery-migrate find all "errors" at load or at runtime?

If I'm to upgrade jquery, and I use jquery-migrate to give me warnings on depreciated code, do I need to exercise all functions on the page to catch all things to upgrade, or is it enough to load each ...
0 votes
0 answers
169 views

Error in jquery-3.0.0.js: "Unable to get property 'exports' of undefined or null reference"

I'm working on upgrading a web-app that uses jquery-1.9.1, jquery-ui-1.10.3, runs on a JBoss AS 7.0 server and uses Internet Explorer-11. So now I'm trying to upgrade jquery-1.12.4 to 3.0.0 using the ...
1 vote
1 answer
195 views

jquery-migrate: filter out warnings from specific files?

I trying to migrate from jQuery 2.2.4 to jQuery 3.4.1, and to that end I'm using jquery-migrate-3.1.0.js. My problem is that it generates warnings for a library I use (Telerik Kendo UI), over which I ...
5 votes
1 answer
11k views

Why do I need jquery-migrate-1.4.1.js after a successful jQuery upgrade?

I am done upgrading jQuery from 1.3.1 to 1.12.4. Everything is working correctly and I am ready to remove jquery-migrate-1.4.1.js because I was only using it for debugging purposes during the upgrade ...
9 votes
1 answer
12k views

jQuery.fn.scroll() event shorthand is deprecated

I'm upgrading jQuery in my project to a recent version 3.4.1. I set up jquery-migrate and look in the browser console to see things I should modify. Among others it reads jQuery.fn.scroll() event ...
0 votes
1 answer
508 views

How does jQuery Migrate plugin look for old code?

Just a conceptual question. Does the migrate plugin search through the javascript files pulled in by the browser? Or does the migrate plugin only look through code that is being executed by the server?...
0 votes
1 answer
850 views

Why jQuery-migrate in not replacing depreciated functions directly in the code?

Im using jQuery-migrate on a big project. I corrected all the warnings I could but now the warnings are inside libraries. Some libraries are not updated anymore so I can't update them to make them ...
21 votes
1 answer
39k views

Migrating jQuery from 1.4 to 3.0

I saw that jQuery has the jQuery-migrate script to safely upgrade jQuery. They have two jQuery-migrate repos: https://github.com/jquery/jquery-migrate (for migrating to 3.x) https://github.com/jquery/...
0 votes
1 answer
1k views

jQuery migration from 1.4.2 to latest

I have a legacy application that uses jQuery 1.4.2 and I need to update the version to the latest stable build, so that it doesn't have the vulnerabilities of the old version. The code base is pretty ...
0 votes
0 answers
162 views

Show/Hide on Scroll working when I remove JQuery-Migrate-3

I have code that works when I remove JQuery Migrate 3.0.1 but when I add it back the code no longer works. I need Migrate as this is a very old site and I am trying to add new features to it... here ...
0 votes
0 answers
68 views

jQuery Migration. No equivalent to "then"

Hi I have been working on updating jQuery from 1.11 to 3.3. I installed jQuery migration script which pointed out many of the differences that needed to be made. However, I have found no alternatives ...
0 votes
0 answers
71 views

JQuery 1.4 to 1.12 Selector in not a function with .Not

We are migrating from 1.4 to 1.12 (and then to 3.0). Why I am receiving this error in 1.12: TypeError: $allButtons.not(...).button is not a function var $allButtons = $('....
0 votes
1 answer
654 views

BootstrapDailog is not working in Bootstrap4 with Jquery 3.3.1

I am using BootstrapDialog with Bootstrap4 and Jquery3.3.1 when i call BootstrapDialog.confirm then it will throw an error "Uncaught TypeError: Object.keys called on non-object" in older version of ...

15 30 50 per page