Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    126
    Vote Rating
    0
    jfizer is on a distinguished road

      0  

    Default Load XML data from field into Ext.data.store?

    Load XML data from field into Ext.data.store?


    No doubt this is a simple question and I'm just over tired, but how do I load XML stored in a textarea field on the page into an Ext.data.Store?
    Works fine with the URL parameter, but I want to be able to make edits and then load a data grid.

  2. #2
    Sencha User
    Join Date
    Jul 2008
    Posts
    126
    Vote Rating
    0
    jfizer is on a distinguished road

      0  

    Default


    Well, may not be the best method but the following works to generate an object "xmlDoc" which can then be passed to the Ext.data.Store as its Data property.
    Code:
            myData = String(document.getElementById('myXML').value);
            //alert(myData);
            if (window.ActiveXObject) {
                var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
                xmlDoc.async = "false";
                xmlDoc.loadXML(myData);
            } else {
                var xmlDoc = new DOMParser().parseFromString(myData,"text/xml");
            }