1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    7
    Vote Rating
    0
    ruicoimbralopes@gmail.com is on a distinguished road

      0  

    Default Unanswered: How to make a List based on a table of html page (another server)

    Unanswered: How to make a List based on a table of html page (another server)


    Hello,


    I will appreciate some help and some advices to know where I should start to do this:

    I have a html table on a page with some columns:

    - Image
    - Title
    - Short description
    - Long description (html with images included)

    I want to make an app that shows that table in a list and if i choose one item the last column (Long description) appears on a second page.

    How can I read hml and put that on a Dataview. I think is something like this:


    Ext.create('Ext.DataView',{
    fullscreen
    :true,
    store
    :{ autoLoad:true,
    fields
    :['image','title','short_description','long_description],

    proxy
    :{ type:'????????',
    url
    :'http://www.site.com/table.html',

    reader
    :{
    type
    :'???????????????????'
    , root:'results'}}},

    itemConfig
    :{
    tpl:'<img src="{image}" /><h2>{title}</h2><p>{short_description}</p>'}});


    What I put on Type or I need to make in a different away?

    Thank you,
    Rui

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Answers
    28
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Usually Stores load their data as either JSON or XML. Then you could use a DataView to loop over the results in your JSON and specify a template used to render each result.

    In your case it seems like you want to just load some html into a component. I suggest you make a plain old Ext.Ajax.request to your html page, and in the callback create a Component with the html property set to the response of the request.

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