Copied to clipboard

Flag this post as spam?

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


  • Lennart Stoop 304 posts 842 karma points
    Apr 27, 2011 @ 23:47
    Lennart Stoop
    0

    Client script compatibility in data editors

    Hey guys,

    The Jquery UI 1.8.11 script I'm using in the OpeningHours data editor conflicts with the Jquery autocomplete plugin used by the Tags data editor (the latter extends Jquery with the autocomplete method, which has also been added to Jquery UI).

    I could just drop Jquery UI and extract the autocomplete functionality and make sure it works independently, however I do feel we should be able to reference the latest version of Jquery within our controls?

  • Lennart Stoop 304 posts 842 karma points
    Apr 29, 2011 @ 21:38
    Lennart Stoop
    0

    Ok, so I've been doing a bit of Javascript debugging and it seems to me that I cannot reference a higher version of Jquery because it simply breaks OOB data editors (for example Tags) when these data editors make calls to extended methods (their extensions/plugins are not loaded properly in the newer Jquery version).

    Jquery UI 1.8.11 does not function properly with the Jquery contained in Umbraco, so that library cannot be used either.

    It looks like I'm forced to write a custom autocomplete or fall back to the deprecated one which succeeds Jquery UI autocomplete..

     

    No package creators bumped into this before ?

     

  • Ove Andersen 435 posts 1541 karma points c-trib
    Apr 30, 2011 @ 11:27
  • Lennart Stoop 304 posts 842 karma points
    Apr 30, 2011 @ 13:27
    Lennart Stoop
    0

    Hey Ove,

    That actually seems to have solved the issue, all it took was this:

    var jq151 = jQuery.noConflict(true);
    jq151(".oh_hoursAutocomplete").autocomplete({ /* Jquery UI autocomplete call */ ..

    Thanks for pointing this out!

Please Sign in or register to post replies

Write your reply to:

Draft