1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    3
    Vote Rating
    0
    shanimal is on a distinguished road

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Did you check what version or what is the site is using?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    shanimal is on a distinguished road

      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
    shanimal is on a distinguished road

      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.

Thread Participants: 1

Tags for this Thread