jQuery UI AutoComplete didn't load Correctly

jQuery UI AutoComplete didn't load Correctly

raspoteenraspoteen Posts: 16Questions: 8Answers: 0

Hi, I purchased dataTables and uses autoComplete plugin with editor,
first I got error that the search result view in the corner of the screen (not under search field), I notice that the autoComplete plugin uses jQuery version(1.10.0) I tried to upgrade it to latest JQuery version(1.12.1), but I got error in console and there is no result in the search field,

Uncaught TypeError: elem.getClientRects is not a function
    at jQuery.fn.init.offset (http://127.0.0.1:8000/css/mix/datatables.js:20251:14)
    at Object.getWithinInfo (https://code.jquery.com/ui/1.10.4/jquery-ui.js:1084:26)
    at jQuery.fn.init.$.fn.position (https://code.jquery.com/ui/1.10.4/jquery-ui.js:1103:23)
    at $.(anonymous function).(anonymous function)._suggest (https://code.jquery.com/ui/1.10.4/jquery-ui.js:2509:6)
    at $.(anonymous function).(anonymous function)._suggest (https://code.jquery.com/ui/1.10.4/jquery-ui.js:401:25)
    at $.(anonymous function).(anonymous function).__response (https://code.jquery.com/ui/1.10.4/jquery-ui.js:2453:9)
    at $.(anonymous function).(anonymous function).__response (https://code.jquery.com/ui/1.10.4/jquery-ui.js:401:25)
    at $.(anonymous function).(anonymous function)._superApply (https://code.jquery.com/ui/1.10.4/jquery-ui.js:391:36)
    at $.(anonymous function).(anonymous function).__response (https://code.jquery.com/ui/1.10.4/jquery-ui.js:2606:8)
    at $.(anonymous function).(anonymous function).__response (https://code.jquery.com/ui/1.10.4/jquery-ui.js:401:25)

how to solve this error ?? and why dataTables uses old version of JQuery ??

Answers

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    DataTables is compatible with all versions of jQuery from 1.7+. I would recommend using the latest version available (1.12.3 or 3.2.1 currently).

    I do know that older versions of jQuery UI had some compatibility issues with updated versions of jQuery. What version of jQuery UI are you using?

    Allan

  • raspoteenraspoteen Posts: 16Questions: 8Answers: 0

    When I'm using JQuery UI version( 1.10.1 ) the dropdown search view in the corner of screen, and when I used JQuery UI version( 1.12.1 ) I never got any result !

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    I'm happy to take a look at a page showing the issue if you link to it.

    Allan

This discussion has been closed.