Results 1 to 4 of 4

Thread: TypeError with invalid Ext.query('#id.class:input')

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default TypeError with invalid Ext.query('#id.class:input')

    The result that occurs instead:
    • TypeError: Cannot read property '0' of null

    Test Case:
    Code:
        Ext.query('#id.class:input')
    HELPFUL INFORMATION
    Operating System:
    • Mac v10.8.2 b12C60
    Browser:
    • Google Chrome 24.0.1312.56
    Site:

    Note I expected the selector to be empty, but it threw an error. This doesn't happen in jQuery, is this normal/acceptable behavior for extjs?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,316
    Vote Rating
    1290
      0  

    Default

    Did you check what version or what is the site is using?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default

    The sencha site is running 3.1

    From the console:

    Ext.version
    "3.1.0"
    Ext.query('#id.class:input')
    [COLOR=red !important]
    TypeError: Cannot read property '0' of null


    [/COLOR]




    Last edited by shanimal; 25 Jan 2013 at 10:49 AM. Reason: misformatted after submit, trying again

  4. #4
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
      0  

    Default

    You can close this if you think its invalid. This query is not valid in ExtJs. It appears to be valid only in jQuery.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •