English 中文(简体)
在Sencha 触角建立一个名单
原标题:Create another list from a list in Sencha touch

我对似乎只是一件简单的事感到困惑。

我是整个塞沙触及环境的新鲜事,仍然需要接手很多事情。

这里的问题是首要问题,

我已经从Sencha的网页上打上了打字的灯光,如果它从JSON数据 &装上一份清单,则这种照相便很简单。

想做的是再造一个名单,这样就可以做到。

1- List one loads on startup 2- On clicking an item in List 1, it loads another list 2 3- on cicking the list 2, it loads the HTML content.

我有书面网络服务,根据这一服务,我谨编制第二份名单。

Im item

 showPost: function(list, index, element, record){
    Ext.Ajax.request({
        url:  http://localhost/mobig/ws/search.php?cat= +record.get( category ),            
        success: function(response){
            var text = response.responseText;
            var responses = Ext.JSON.decode(response.responseText);

            alert(responses.posts[0].title);
        }
    });

我也要:

    this.getBlog().setData({
        xtype: panel ,
        title:record.get( category ),
        html: <img src= +record.get( imageURL )+ /> ,
        scrollable:true,
        styleHTMLContent:true
    });
}   

第1组

感谢您的事先帮助,并对坏官邸表示担忧,

如果你能够向我指出一些例子, 学习将是一个很好的场所。

Thanks! Mo.

最佳回答

t.NestedList,但我没有建议使用,因为目前在Sencha Touch 2中公布的清单业绩仍然如此可怕(滚动、活动捕获等),如果你对业绩给予更多的关注,你就应当使用2 自行编辑的Ext.List ,例如,在清单中,有1份,有2份,在清单中,有2份;在清单中,有1份(<>>/tap/code>上,可读取。

Hope it helps.

问题回答

如你想要制定一份nes名单:,其中应指明你的方向。





相关问题
JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

jQuery quicksearch plug-in tinkering with JSON

I ve implemented the quicksearch plugin by Rik Lomas and I love it for an application in a custom CMS I m building. I was wondering though, since I m going to have a bizillion items in the table if ...

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

PHP json_decode question

i m trying to use json_decode to combine a few json objects and then re-encode it. my json looks like: { "core": { "segment": [ { "id": 7, "...

Converting JSON data to Java object

I want to be able to access properties from a JSON string within my Java action method. The string is available by simply saying myJsonString = object.getJson(). Below is an example of what the string ...

热门标签