mikromundo Posted October 27, 2022 Share Posted October 27, 2022 Hi, @Sherzod Why even in a CLEAN application, without any components and, in ServerModule being set to "do not load jQuery", the application still tries to load jQuery.InputMask and autoNumeric? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 27, 2022 Share Posted October 27, 2022 Hi @mikromundo unit Main -> uniGUIRegClasses -> uniGUIControlLogin -> uniEdit initialization UniAddJSLibrary('jQuery/MaskedInput/jquery.inputmask.min.js', False, [upoFolderUni, upoPlatformDesktop]); UniAddJSLibrary('jQuery/autoNumeric/autoNumeric-1.9.35.js', False, [upoFolderUni, upoPlatformDesktop]); Quote Link to comment Share on other sites More sharing options...
mikromundo Posted October 27, 2022 Author Share Posted October 27, 2022 Thanks @Sherzod( it works !!! ), but please explain it better. is this to change the unigui source code? Will I have to do this with other components? note: The purpose of this is because I don't want to use the unigui standard library so I can use an updated version of jQuery, InputMask. Quote Link to comment Share on other sites More sharing options...
mikromundo Posted October 27, 2022 Author Share Posted October 27, 2022 7 hours ago, Sherzod said: Hi @mikromundo unit Main -> uniGUIRegClasses -> uniGUIControlLogin -> uniEdit initialization UniAddJSLibrary('jQuery/MaskedInput/jquery.inputmask.min.js', False, [upoFolderUni, upoPlatformDesktop]); UniAddJSLibrary('jQuery/autoNumeric/autoNumeric-1.9.35.js', False, [upoFolderUni, upoPlatformDesktop]); Thanks again for that tip Sherzod. I was able to successfully load the updated jQuery. (I'm doing all the tests possible to see if some kind of incompatibility occurs). Is there any way to parameterize the load according to the existing parameter in the ServerModule ? or can we interpret this as a "feature request" ? Because once these lines are commented out, a common application, in which you can use standard jQuery, may crash. Quote Link to comment Share on other sites More sharing options...
FastCards Posted November 8, 2022 Share Posted November 8, 2022 mikromundo, Can you post details of where you put the extra lines suggested by Sherzod? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted November 8, 2022 Author Share Posted November 8, 2022 1 hour ago, FastCards said: mikromundo, Can you post details of where you put the extra lines suggested by Sherzod? Hi, actually I didn't use Sherzod's tip because it changes for every project that is developed and that's not good. See above that I asked a new question but so far there has been no response. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 8, 2022 Share Posted November 8, 2022 55 minutes ago, mikromundo said: Hi, actually I didn't use Sherzod's tip because it changes for every project that is developed and that's not good. Yes, actually I answered the question - "why?": On 10/27/2022 at 3:19 PM, mikromundo said: Why even in a CLEAN application, without any components and, in ServerModule being set to "do not load jQuery", the application still tries to load jQuery.InputMask and autoNumeric? Quote Link to comment Share on other sites More sharing options...
mikromundo Posted November 8, 2022 Author Share Posted November 8, 2022 Hello @Sherzod What I tried to explain/ask is that this change could come in a future release, so that it recognizes the parameter in the servermodule and that the developer does not need to make this change in the unigui source code. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2022 Share Posted November 9, 2022 9 hours ago, mikromundo said: What I tried to explain/ask is that this change could come in a future release, so that it recognizes the parameter in the servermodule and that the developer does not need to make this change in the unigui source code. Yes, as I said also in other posts... We also need to check for compatibility as these plugins use an early version of jQuery. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.