Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / using multiple jquery and jquery-ui versions

using multiple jquery and jquery-ui versions

New Discussion
AbbottF
AbbottF asked on Nov 22, 2016 12:02 PM

I am working within the AspDotNetStorefront environment, which does not like newer versions of jQuery. I have a component the resides on a page with the older versions. I have to run igniteui16.2 under the latest versions – I’ve just downloaded them. To eliminate conflicts, I replaced all $ references with $j in the control’s jquery – jquery-ui and infrgistics.js, which should allow me to run in a sandbox. It does not seem to work. The error get with a combo (when the browser is parsing my control script) is :

TypeError: $j(#combo).igCombo is not a function.
 
Anyone have any suggestions?
 
This is a rough environment to work in.
Thanks
Abbott
Sign In to post a reply

Replies

  • 0
    Tihomir Iliev
    Tihomir Iliev answered on Nov 17, 2016 1:57 PM

    Hello Abbott,

    Thank you for contacting us.

    For your scenario you should use https://api.jquery.com/jquery.noconflict/ . Ignite UI supports jQuery.noConfict so it should suit you perfectly.

    Please let me know if you need further assistance.

    • 0
      AbbottF
      AbbottF answered on Nov 18, 2016 1:14 PM

      Thanks. That sounds great. Could you please give send me a sample. My aspx page has already loaded an older version of jquery & jquery-ui. The control needs to use the newer versions of both allowing the 16.2 version of igniteui components to work properly. Once the user is finished with the page, all other aspx pages that do not need this control or 16.2 will be load with the older versions.

      Thanks

      Abbott

      • 0
        AbbottF
        AbbottF answered on Nov 18, 2016 1:20 PM

        As a note, for testing this I have the following in the ascx control …

         
            <!– Ignite UI Required Combined CSS Files –>
            <link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/themes/infragistics/infragistics.theme.css&quot; rel="stylesheet" />
            <link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/structure/infragistics.css&quot; rel="stylesheet" />
            <!– Ignite UI Required Combined JavaScript Files –>
            <script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/infragistics.core.js"></script&gt;
            <script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/infragistics.lob.js"></script&gt;
            <!– My js file referencing the .iggrid and .igcombo functions –>
            <script src="jscripts-KBO/kbo-bookselector.js"></script>

      • 0
        Tihomir Iliev
        Tihomir Iliev answered on Nov 21, 2016 4:31 PM

        Hello Abbott,

        Thank you for your update. Here are the steps you should take to resolve your issue:

        1. Load the new jQuery and jQuery UI versions and load the control you want to run with it.

        2. Call jQuery.noConflict(true);

        3. Load the old jQuery and jQuery UI versions so everything else could use them.

        For a proper sample please refer to the link I mentioned earlier – https://api.jquery.com/jquery.noconflict/. There you could find a lot of samples, including resolving conflict with two versions of jQuery. 

        Please let me know if you need anything else.

      • 0
        AbbottF
        AbbottF answered on Nov 21, 2016 5:16 PM

        Thank you. I now understand. Hope all is going well in the Sofia office.

        Abbott

      • 0
        Tihomir Iliev
        Tihomir Iliev answered on Nov 22, 2016 12:02 PM

        Hello Abbott,

        Everything is going great in Sofia.

        I am looking forward to hearing from you if you need further assistance with your issue.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
AbbottF
Favorites
0
Replies
6
Created On
Nov 22, 2016
Last Post
9 years, 3 months ago

Suggested Discussions

Created by

Created on

Nov 22, 2016 12:02 PM

Last activity on

Feb 25, 2026 10:50 AM