jQWidgets Forums

jQuery UI Widgets Forums Grid Uncaught Error: Invalid jQuery Selector

This topic contains 5 replies, has 3 voices, and was last updated by  Peter Stoev 10 years, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Uncaught Error: Invalid jQuery Selector #48614

    realtek
    Participant

    Hi,

    I seem to suddenly be getting this error:

    Uncaught Error: Invalid jQuery Selector - #jqxgrid .jqx-grid-cell! Please, check whether the used ID or CSS Class name is correct.

    However #jqxgrid *does* exist on the page and I can’t seem to get to the bottom of it.

    Could anyone point me in the correct direction please?

    Thanks!

    Uncaught Error: Invalid jQuery Selector #48615

    Peter Stoev
    Keymaster

    Hi realtek,

    The Exception is thrown if the element does not exist on your page or does not exist at least when you try to use it. We check whether you try to use a widget from Invalid Selector i.e when there’s no such HTML Element in the DOM and we throw that exception on purpose to remind you to check your code for errors.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    nadeem4n
    Participant

    Hi Peter,

    I am getting the same error but it happens even before we instantiate the grid (error is thrown when script is included as a RequireJS dependency). This is happening only in IE8 browser, other browsers are fine. It is not mentioning the name of selector in the message, so the error message is “Invalid Selector! Please, check whether the used ID or CSS Class name is correct.”

    Any ideas?

    Regards,
    Nadeem Ullah


    Peter Stoev
    Keymaster

    Hi Nadeem Ullah,

    The error means that you use Invalid jQuery Selector. If you use Correct ID or CSS Class for your jQuery Selectors, no error will be raised.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    nadeem4n
    Participant

    I found out the issue and yes, the element was not yet loaded because there was some issue in HTML syntax and IE8 is strict about it and it was not rendering the html at all. Corrected the syntax and the error was gone.

    But there is another issue with JQX grid on IE8. I posted details to another post here.


    Peter Stoev
    Keymaster

    Hi nadeem4n,

    Thanks for the update.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.