Good day to all. Please tell me how to solve the following problem. Faced extjs 5.1, previously did not work with it.
The question is the following interface:
I implement the search for students through AJAX. There is such code:
Ext.Ajax.request({ url: '/admin/learner/getLearnerBySearch', params: { search: inputSearch.rawValue }, waitMsg: 'Загрузка...', success: function(data) { //????.html(data.responseText); Как тут быть? } }); With this code, I give the search value to the controller, pull the request to the right people in JSON format and get the following string:
[{ "id": 16, "fio": "\u041a\u043b\u0438\u043c\u043e\u0432\u0430 \u0412\u0430\u043b\u0435\u0440\u0438\u044f", "email": "ms.klg4545453@mail.ru", "phone": "+7(920)31445459", "group": "244", "block": 0 }] Now the question is, in which element in extjs to insert this line into success, so that those entries that came from the controller and everything worked correctly appeared in the window above.
