jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable $(…).jqxSortable is not a function

This topic contains 4 replies, has 2 voices, and was last updated by  AndreaGot 7 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • $(…).jqxSortable is not a function #94705

    AndreaGot
    Participant

    Hi,

    I have an issue using jqxSortable as a js file included into a JIRA plugin.
    When it comes to load this file into a page, all seems ok, but when it performs

    $("#sortable").jqxSortable();

    It says that jqxSortable is not a function. However, checking

    typeof jqxSortable

    it says it is a function, as expected.

    Why doesn’t it recognize that div’s property? Do you have any clues?

    Thank you

    $(…).jqxSortable is not a function #94707

    Peter Stoev
    Keymaster

    Hi AndreaGot,

    jqxsortable.js and jqxcore.js should be included before trying to use jqxSortable, otherwise you will encounter such error. Also the files should be already loaded on the page.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    $(…).jqxSortable is not a function #94710

    AndreaGot
    Participant

    I checked but they are already included. I declared them in an xml files that loads them when I call it, namely in the <head> of my html file, and I know it works since I can see that code in page source, and even because angular.js library works as expected.

    But even if it is not completely loaded when it gets called for the first time, would I be able to perform $("#sortable").jqxSortable(); in the JS console? Because it doesn’t work either..

    $(…).jqxSortable is not a function #94711

    Peter Stoev
    Keymaster

    Hi AndreaGot,

    I listed all the possible reasons in my previous post. If it’s not part of $, then you may also have multiple jQuery references or this file is indeed not loaded when you try to use it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    AndreaGot
    Participant

    Sorry, but I still don’t understand why, if file could be not yet loaded or not loaded at all,

    typeof jqxSortable
    "function"

    works as expected.
    In fact I don’t know where it is loaded, but is this a clue that means jqxSortable is loaded anywhere?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.