Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 24, 2010 @ 06:09
    Kurniawan Kurniawan
    0

    Upgrade JQUERY.UI from 1.7.2 to 1.8.4

    Hi,

    I want to use Autocomplete control from JQuery.UI. inside my custom edit page.

    But The problem is I need to replace /umbracoui/js/jquery.ui from 1.7.2 into 1.8.4

    At this moment it worked fine. But Anyone experience any problem by replacing this JQUERY.UI. ?

     

    Thanks for your information

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 24, 2010 @ 06:44
    Aaron Powell
    0

    Why replace it, why not just put it in a different location?

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 24, 2010 @ 22:15
    Kurniawan Kurniawan
    0

    I have try to copy to different location and attached it to my custom edit CMS page.

    But It seems it conflicting between version.
    I want to use Autocomplete.
    And If I reference saperately using Jquery.UI,1.8.4 - I get zIndex Error, and It seems it use the old version.
    1.7.2

    But If I change it that jquery.ui, It solve my problem.

    What do you recommend ?

     

    Thanks

     

  • sun 403 posts 395 karma points
    Nov 25, 2010 @ 06:17
    sun
    0

    I suggest that Umbraco team should update it to 1.8.6

    other, tinymce should be updated to newest 3.3.9.2

    these version are most bugs fix.

  • Kurniawan Kurniawan 202 posts 225 karma points
    Nov 26, 2010 @ 00:22
    Kurniawan Kurniawan
    0

    I notice when you upgrade that.. the popup will not work.

    When you drag, it has weird effect. You can't even drag it .. only the white frame is move..

     

    I guess I need to use other autocomplete plugin which can display an image.

  • Rob Watkins 369 posts 701 karma points
    Mar 31, 2011 @ 16:47
    Rob Watkins
    0

    I got exactly this problem in a custom section; I got around it by just including jQuery 1.5 and jQuery UI 1.8 in my custom section master page; as the "head" content placeholder in the umbracoPage.master is after all the core scripts, the new versions will override them and work. 

    I get this one error in the console:

    Uncaught TypeError: Object function (a,b){return new d.fn.init(a,b,g)} has no method 'cookie'

    ...but everything seems to work :o/

  • Rob Watkins 369 posts 701 karma points
    Mar 31, 2011 @ 17:00
    Rob Watkins
    0

    I tried to use jQuery.noConflict(true), but unfortunately jQueryUI just looks at the jQuery global object - you can't give it a custom one. However, you can do a horribly disgusting workaround:

       <script type="text/javascript" src="/scripts/jquery-1.5.1.min.js"></script>
        <script type="text/javascript">
            jQuery15 = jQuery.noConflict(true);
            _jQuery = jQuery;
            jQuery = jQuery15;
        </script>
        <script type="text/javascript" src="/scripts/jqueryui.1.8.js"></script>
        <script type="text/javascript">
            jQuery = _jQuery;
        </script>
    
    ...Then ensure that all functions that need to call the newer UI functions do it like this:
    jQuery15(function($)
    {
        $('#blah').autocomplete(...);
    });

    This works for what I'm doing and has stopped the above error. It is pretty horrible though, and very untested for anything else. I'd like a better way of doing it.

Please Sign in or register to post replies

Write your reply to:

Draft