Code:
{
"total": {
"totalCount": 50
},
"data": [{
"ID": "2",
"post_author": "1",
"post_date": "2012-05-15 09:41:57",
"post_date_gmt": "2012-05-15 09:41:57",
"post_content": "Questa \u00e8 una pagina di esempio. Differisce da un articolo del blog perch\u00e9 rimane in posizione fissa e appare nella navigazione del sito (nella maggior parte dei temi). Molte persone iniziano con una pagina informativa che li introduce ai potenziali visitatori. Che potrebbe dire un cosa del genere:\n\n
Salve! Sono un pony express di giorno, un aspirante attore di notte e questo \u00e8 il mio blog. Vivo a Los Angeles, ho un bellissimo cane di nome Jack e adoro la piña colada. (E trovarmi sotto la pioggia.)<\/blockquote>\n\n...oppure qualche cosa del genere:\n\n
La XYZ Doohickey Company \u00e8 stata fondata nel 1971 e da allora ha venduto cazzabubbole di qualit\u00e0 ai propri clienti. SI trova a Gotham City, XYZ impiega oltre 2.000 persone e produce le cose pi\u00f9 incredibili per la comunit\u00e0 di Gotham.<\/blockquote>\n\nCome nuovo utente WordPress, \u00e8 possibile andare sulla bacheca<\/a> per eliminare questa pagina e creare nuove pagine per i propri contenuti. Buon divertimento!",
"post_title": "Pagina di esempio.",
"post_excerpt": "",
"post_status": "publish",
"comment_status": "open",
"ping_status": "open",
"post_password": "",
"post_name": "pagina-di-esempio",
"to_ping": "",
"pinged": "",
"post_modified": "2012-05-15 09:41:57",
"post_modified_gmt": "2012-05-15 09:41:57",
"post_content_filtered": "",
"post_parent": "0",
"guid": "http:\/\/localhost:8888\/wordpress\/?page_id=2",
"menu_order": "0",
"post_type": "page",
"post_mime_type": "",
"comment_count": "0"
}, {
"ID": "31",
"post_author": "1",
"post_date": "2012-07-18 13:56:42",
"post_date_gmt": "2012-07-18 13:56:42",
"post_content": "Ogni comunicazione ha un obiettivo e cos\u00ec ogni sito internet.Gli obiettivi possono essere i pi\u00f9 diversi ma per raggiungerli ci vuole sempre impegno proporzionale ci\u00f2 che si vuole raggiungere, ovvero: grandi obiettivi, grandi impegni.\r\n\r\nRead more >><\/a>",
"post_title": "Web",
"post_excerpt": "",
"post_status": "publish",
"comment_status": "open",
"ping_status": "open",
"post_password": "",
"post_name": "comunicazione",
"to_ping": "",
"pinged": "",
"post_modified": "2012-07-18 16:49:39",
"post_modified_gmt": "2012-07-18 16:49:39",
"post_content_filtered": "",
"post_parent": "0",
"guid": "http:\/\/192.168.1.142:8888\/wordpress\/?p=31",
"menu_order": "0",
"post_type": "post",
"post_mime_type": "",
"comment_count": "0"
}, {
"ID": "43",
"post_author": "1",
"post_date": "2012-07-18 16:18:18",
"post_date_gmt": "2012-07-18 16:18:18",
"post_content": "Cos\u00ec com'\u00e8 vero che siamo fatti della stessa materia di cui sono fatti i sogni, un sito web \u00e8 fatto della materia di cui sono fatti gli hosting.Se poi si sogna di realizzare un sito web, il primo passo, per dare corpo a questo desiderio nel mondo cliccabile, sar\u00e0 scegliere la materia giusta.\r\n\r\nRead more >><\/a>\r\n",
"post_title": "Hosting",
"post_excerpt": "",
"post_status": "publish",
"comment_status": "open",
"ping_status": "open",
"post_password": "",
"post_name": "hosting",
"to_ping": "",
"pinged": "",
"post_modified": "2012-09-07 16:34:53",
"post_modified_gmt": "2012-09-07 16:34:53",
"post_content_filtered": "",
"post_parent": "0",
"guid": "http:\/\/192.168.1.142:8888\/wordpress\/?p=43",
"menu_order": "0",
"post_type": "post",
"post_mime_type": "",
"comment_count": "0"
}, {
"ID": "51",
"post_author": "1",
"post_date": "2012-07-23 15:17:45",
"post_date_gmt": "2012-07-23 15:17:45",
"post_content": "In molti casi, quando su internet si trova qualcosa \"per caso\", non \u00e8 un caso. Grazie ai nostri servizi di SEO e Webmarketing svilupperemo insieme delle strategie per trasformare la casualit\u00e0 in un'opportunit\u00e0 di business.\r\n\r\nRead more >><\/a>",
"post_title": "SEO, WEB MARKETING",
"post_excerpt": "",
"post_status": "publish",
"comment_status": "open",
"ping_status": "open",
"post_password": "",
"post_name": "seo-web-marketing",
"to_ping": "",
"pinged": "",
"post_modified": "2013-04-22 15:27:21",
"post_modified_gmt": "2013-04-22 15:27:21",
"post_content_filtered": "",
"post_parent": "0",
"guid": "http:\/\/192.168.1.142:8888\/wordpress\/?p=51",
"menu_order": "0",
"post_type": "post",
"post_mime_type": "",
"comment_count": "0"
}, ......
]
}
mystore.js
Code:
Ext.define('xxx.store.Blogs', {
extend: 'Ext.data.Store',
xtype : 'blogs',
config:{
model: 'xxx..model.Blogm',
autoLoad: true,
proxy: {
type: 'ajax',
url: 'http://www.xxx.it/ajax.php',
reader: {
type: 'json',
totalProperty: 'total',
rootProperty: 'data',
successProperty: 'success',
},
},//proxy
pageSize: 2,
}//config
})
The app continue to show all results from my server and if i tap "load more" the same list is duplicate.