1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    78
    Answers
    1
    Vote Rating
    3
    JeromeA is on a distinguished road

      0  

    Default Unanswered: Get full content of a dom node

    Unanswered: Get full content of a dom node


    I'm trying to parse the content of a dom node , but I can't get the full content of a node if contain other elements, it only give me the first part


    my "msg" variable contains this as raw data


    Code:
    <msg>Hi,<br/>how are you?<br/>cheers</msg>
    using Ext.DomQuery.selectValue("/", msg)


    All i get is "Hi,"


    what I want is "Hi,<br/>how are you?<br/>cheers"

    what I'm trying to do is to parse that html inside the html of a panel.

    any idea?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Answers
    655
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    See if this will work:

    Code:
    <html>
        <body>
            <msg>Hi,<br/>how are you?<br/>cheers</msg>
        </body>    
    </html​​​​​​​​​​​​​​​​​​​​​​>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
    Code:
    var val = Ext.query('msg');
    console.log(val);
    ​
    f198362.png

    Regards,
    Scott.

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    78
    Answers
    1
    Vote Rating
    3
    JeromeA is on a distinguished road

      0  

    Default


    Hi Scott, thanks for the reply

    I'm not sure how this could apply to my situation, my XML data first came from a form store. I used

    Code:
    Ext.DomQuery.select("/msg", form.store.proxy.reader.rawData);
    to populate an array variable caled MSG, then i loop through that .

    Also, Ext.Query seem to return a DOM.

    What I as wondering is if there is a way to get the full node content as a string? The issue is that because <msg> containt text and tag and text and tag... I can never get the full content, I have to loop through the content of msg and it seems like a pain for a simple task.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi