1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    2
    Vote Rating
    0
    luciusnam is on a distinguished road

      0  

    Default Unanswered: Script error on Ext JS tree

    Unanswered: Script error on Ext JS tree


    Hello. I`m using TreePanel.
    It was good before it has a problem.

    I use Tree by XML.
    The tree is great and perfect.
    It solves my whole worries.
    but if it need following XML, the problem has come.

    <?xml version="1.0" encoding="UTF-8"?>
    <rows id='0' folder='1' name='ph' desc='0'>
    <rows id='7510' folder='1' name='Subject' desc=''>
    <rows id='17768' folder='0' desc='(R&lt;L)'/>
    </rows>
    </rows>


    It just use '<' character before the 'L'.
    it has a javascript error like that.
    "firstChild is null" on line 7 in ext-all.js

    but when I put a blank between '<' and 'L',
    it is fine.

    Please let me know why..

    Thanks to reading N have a nice day~

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,596
    Answers
    542
    Vote Rating
    324
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Looks like an escaping issue. Could you post the config for your store and tree so that we can reproduce? Please be sure to wrap any code you post in [CODE] tags (# button on the editor toolbar).

Thread Participants: 1