Results 1 to 4 of 4

Thread: Reading an xml file and displaying in a list

  1. #1

    Default Reading an xml file and displaying in a list

    Hi all, i'm new to sencha touch. I need some one to help to read an xml file and print it in a list. i ve uploaded the code. i dont know whats's wrong in this code.

    Code:
    Ext
    
    .regModel('Search',{ fields
    :[ {name:'titl',type:'string'}, {name:'dat',type:'date'}, {name:'notes',type:'string'}] });
    var store =new Ext.data.Store({ model
    :'Search', proxy
    :{ type
    :'ajax', url
    :'test1.xml', success:function(){
    alert
    ("success"); }, reader:{
    type:'xml',
    record:'test'
    } } });
    store.load();
    var list =new Ext.List({ fullscreen:true,
    itemTpl :'{titl},{dat},{notes}',
    grouped:false,
    indexBar:false,
    store: store
    });
    list.show();

    If i run the html file the page is loading . there is no response. I need help on this. Thanks in advance.


  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    9

    Thumbs up

    hi yasodha..

    for that problem..

    take panel and show the list in that panel..

    i have the same problem and i used panel to show that list... and it works fine..

  3. #3

    Default

    Thanks I used nestedlists instead - I found that was the best way of doing it. But I had to convert an asp file to json first.

  4. #4

    Default

    Thanks for the reply maulik. I used nestedlist and json instead of list and xml.

Similar Threads

  1. Example for reading xml attributes and displaying
    By nash99 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Jun 2009, 12:26 AM
  2. Reading the xml file
    By samwells in forum Community Discussion
    Replies: 8
    Last Post: 24 Mar 2009, 3:39 PM
  3. Error reading a xml file with XmlReader
    By neo1010 in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 4 Sep 2008, 6:00 AM
  4. Reading XML file in local system
    By narayantalakanti in forum Community Discussion
    Replies: 11
    Last Post: 17 Dec 2007, 1:29 AM
  5. Problem reading the XML file
    By evallgar in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 3 Oct 2007, 9:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •