[BUG Ext1.b2] Can't correctly parse "name" in Tree

  • with this JSON structure:
    [
    { "cls" : "folder", "icon" : "/im/menu/user_gray.png", "text" : 'a2', "id" : "user", "leaf" : false },
    { "cls" : "folder", "icon" : "/im/menu/user_gray.png", "text" : 2, "id" : "user", "leaf" : false }
    ]

    I have js error:
    Ошибка: n1[p].toUpperCase is not a function
    Источник: http://lite-himki-1.0.0/js/ext/ext-all.js
    Строка: 145

    But with:

    [
    { "cls" : "folder", "icon" : "/im/menu/user_gray.png", "text" : 'a2', "id" : "user", "leaf" : false },
    { "cls" : "folder", "icon" : "/im/menu/user_gray.png", "text" : 'b2', "id" : "user", "leaf" : false }
    ]

    This look like Ext cant parse name if it have only digit. But may be my linux+perl+utf8 is culprit?


  • TommyMaintz, yes, it's true, perl realisation of JSON automaticaly convert "text" => '2' to "text" => 2 (as integer) % ((((

    May be deserve to add workaround to toUpperCase() function?

    P.S. Sorry, this is not perl-JSON problem) i'm manualy send 2 as integer from perl ccript by print directive, but problem is stil open. Who know. what's error in JSON realisation may be...


  • Havent looked at the source but from what your posting it seems as if its trying to uppercase an integer, wich is impossible.
    try "text" : '2' instead of "text" : 2 to pass it as a string.


  • I can't find any call of toUpperCase in the tree classes.

    Use ext-all-debug.js to find the line where the error is, and post the surrounding code here so we can see what's trying to be uppercased.


  • Use ext-all-debug.js, and see what line it's at, and post the surrounding lines so we can see what it's doing.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [BUG Ext1.b2] Can't correctly parse "name" in Tree , Please add it free.