We are developing an app using Silk UI with jQuery version 1.8.3 and we are having the following error: "Uncaught TypeError: c.curCSS is not a function". After few searches we noticed that the error is caused by jQuery incompatibility between some widgets.
When Editable Table and a Date Picker customized by us are in the screen, this console error occurs and it's also affecting the UI of other widgets (ex. Icon Dropdown).
In other screens from different modules we are using the same widgets and it works fine.
Did anyone have this problem or knows how it can be fixed?
Best regards
Hi Mihai,
The cause is because the function curCSS was removed from jQuery 1.8
Try to include this javascript code in your module:
(function($) { if (!$.curCSS) { $.curCSS = $.css; } })(jQuery);
Indeed, this was the problem and the piece of code you mentioned helped me to get rid of this error.
Thank you!
Unfortunately we have now another issue with the custom date-picker mentioned previously, it is not opening. That date picker is based on this one https://jqueryui.com/datepicker/ . We have other apps which are using the same date picker without having this error and we would like to understand the reason.
I attached the error we got now.
what is the jquery ui version that you are using.? Is possible to show, how you include the jquery ui library in your project?
Thank you
Hi Gonçalo,
The jQuery UI version is 1.11.2. It is included in the project using a web block, in the same way it is made in the Datepicker app from Forge, the date picker in our app is based on this example.
https://www.outsystems.com/forge/component-overview/351/datepicker
We didn't changed any version of jQuery or jQuery UI and the strange thing is that it works in other modules. Also, I noticed that the problem disappears if I remove from the screen RichWidgets/Input_AutoComplete.
I will try to replicate the problem in my personal are, and i give you feedback very soon. You have some example in your personal to accelerate my investigation?
Thank you.
Sorry, but I don't have any example in my personal environment. You can just create a screen, add inside it an Editable Table with an Input_AutoComplete from Rich Widgets and the datepicker from jQuery UI (you can use the one from Forge).