Updating jquery from 1.10.2 to 3.4.1 - javascript

I'm updating jQuery in my project from 1.10.2.min.js to 3.4.1.min.js but receiving multiple errors, what am I missing? can anyone help? what other files should be added that supports 3.4.1.min.js
Thanks.

Related

Third party js issue in DXP

I am trying to use Progressbar js in Liferay DXp custom plugin. It was working fine in 6.2 however it seems to be not working in DXP.
I have checked the standalone html with this plugin and it works fine however it is not working with DXP 7.0
I am getting
"Uncaught ReferenceError: ProgressBar is not defined"
error.
The file is well loaded on page but I still get this error
.
I have checked the version of Jquery and it's 2.1.4 in DXP 7.0. The plugin is well supported with this version of Jquery as it works fine on standalone html file.
Not sure if there is any issue with DXP while using third party js plugins as I have faced similar issue while using jquery cookie plugin.
Has anyone faced this issue or is there any way to use third party plugin in DXP?
The way I imported this pluigin in portlet is with annotation
"com.liferay.portlet.header-portlet-javascript=/js/progressbar.min.js",
Since it was not working so I have added it in theme and tried but no luck.
Could anyone help me with this, please.
The way I imported this pluigin in portlet is with annotation "com.liferay.portlet.header-portlet-javascript=/js/progressbar.min.js"
Check the generated markup, what actual URL is requested from the server, and if it's being served. I'm assuming that it's a 404 - for example because the file might be missing from your bundle, or in a different location.
If these hints don't help, please edit your question and create an MCVE

How to make ui.sortable work with webpack?

I'm trying to use ui.sortable in my Angular project and I keep getting this error element.sortable is not a function. I'm using Angular 1.6.3 and Webpack. I tried to load this library in several ways and none works.
require('jquery-ui/ui/core');
require('jquery-ui/ui/widget');
require('jquery-ui/ui/widgets/mouse');
require('jquery-ui/ui/widgets/sortable');
Earlier I was using require('jquery-ui-sortable-npm'); which has jQueryUI core and sortable pluging provided.
I'm using selectize which is also using jQueryUI sortable and it works just fine. Does anyone succeeded to make this work?

loading angular2-modal error with rc1

I'm using this library angular2-modal that has some different options, like bootstrap and vex for modals in angular2.
Vex seems to work fine, but as soon as I switch to bootstrap, I get the following error:
responsive-application.js:84712 Uncaught TypeError: core_1.style is not a function
AS I mention on the respone #AngJobs did help me to find a solution, i do a reverse path and instead of upgranding angular y downgrade de library to a working version with RC1
Hope this experience help other Devs :)

Angular-block-ui does not work with the latest version of AngularJS

I would like to block the UI while loading content. I am using AngularJS 1.3.5.
I cannot seem to get angular-block-ui to work for me.
It says on the github page approx~ support version 1.2.4. Does anyone know why?
And can anybody recommend an equivalent library that I could use instead? Perhaps Toaster?
A trivial pitfall for this not to work is forgetting to include the block ui css file.

Can we use jQueryUI and KendoUI at same time?

I have php app where jQueryUI library version 1.8.4. is already implemented with jquery library version 1.4.2. But as per new requirements I need to implement some modules in kendo UI library. So I installed stable version of kendoUI and integrated with my code base but it was giving me some issues so I updated my jquery version to latest stable version. Since then I am having jquery object conflicts. So I think problem is related with jqueryUI.
So can we use both jQueryUI and KendoUI libraries at same time in same page?
I am getting error like this - $.sub is not a function. kendo.data.HierarchicalDataSource is not a constructor
Please anyone tell me how to resolve this issue?
#All,
Thanks for your help guys. My issues gets resolved. Now I have point my js to udpated CDN server jquery js, jqueryUI js and kendoUI js. By doing this I got conflicts like .live is not working and all but I have resolved them by using their alternatives.
Thanks once again.
Kendo depends on jQuery! Therefore, yes you can have both of them at the same page. Different versions of Kendo depends on different versions of jQuery.
Latest Kendo (such as 2013.1.319) works with jQuery 1.9. Upgrading your jQuery from 1.8.4 to 1.9 is quite fun (follow http://jquery.com/upgrade-guide/1.9/). If you are using some 3rd party js plugins/libs what are based on 1.8.4 in your project you might need to upgrade them too.

Categories

Resources