Ajax(3)
-
Sencha form ajax
Clientbuttons: [ { text: 'Submit', handler: function(button) { let form = button.up('form').getForm(); if(form.isValid()) { form.submit({ url: '/test', method: 'POST', waitMsg: 'Submitting your data...', success: function(form, action) { let response = Ext.decode(action.response.responseText); if(response.data == 1) { // controller 함수..
2024.09.01 -
Sencha 'itemId' 다루기
해당 페이지에서만 의미 있는 IDAjax의 결과 Binding 하기생략 items: [ { xtype: 'textfield', itemId: 'id', fieldLabel: 'ID', name: 'id', allowBlank: false, readOnly: true }, { xtype: 'textfield', itemId: 'name', fieldLabel: 'Name', name: 'name', allowBlank: false, }, ],생략 onAfterRender: function(eOpts) { let me = this; Ext.Ajax.request({ url: '/test', method: 'POST', success..
2024.09.01 -
Sencha Ajax 호출
Ext.Ajax.request({ url: 'your-server-endpoint-url', // The URL to which the request is sent method: 'GET', // The HTTP method to use for the request, e.g., 'GET', 'POST' params: { key1: 'value1', key2: 'value2' }, success: function(response, opts) { // This function is called when the request succeeds var responseText = response.responseText; con..
2024.09.01