전체 글(847)
-
Sencha ajax progress
Ext.MessageBox.wait 활용 // Ext.MessageBox.wait를 사용하면 알아서처리 됨 Ext.MessageBox.wait('Please wait...', 'Submitting'); Ext.Ajax.request({ url: 'https://{domain}/{directory}', method: 'POST', headers: { 'Content-Type': 'application/json' }, params : Ext.JSON.encode(form.getValues()), success: function(conn, response, options, eOpts) { Ext.MessageBox.hide() var result = Ext.util.JSON.decode(conn.respons..
2024.04.08 -
Sencha Message 처리
Ext.Msg.alert('Success', '메세지');
2024.04.01 -
FastAPI CORS 설정
https://developer-itspjc.tistory.com/25 Fast API 에서 CORS 에러 해결하기 웹개발을 하다보면 가장 골치아픈 것 중 하나가 CORS (Cross-Origin Resource Sharing) 에러이다. 특히 높은 수준의 보안을 요구하는 Chrome 의 경우에는 원천적으로 CORS를 허용하지 않기 때문에 정말 많은 developer-itspjc.tistory.com from starlette.middleware.cors import CORSMiddleware app = FastAPI() origins = [ "http://localhost:{port}" ] app.add_middleware( CORSMiddleware, allow_origins=origins, allo..
2024.04.01 -
Sencha Ext.tree.Panel(Classic)
# tree 소스 Ext.define('Home.view.menu.LeftMenu', { extend: 'Ext.tree.Panel', // alias 정의 없이 다른 곳에서 'leftmenu'로 찾으면 아래와 같은 에러 발생 // Uncaught Error: [Ext.create] Unrecognized class name / alias: widget.leftmenu alias: 'widget.leftmenu', controller: 'leftmenu', width: 200, title: '메뉴', // root 보이지 않도록 설정 rootVisible: false, // name 필드를 출력되도록 설정 displayField: 'name', store: { // type은 아직 모르겠음 type: '..
2024.03.31 -
Sencha 다른 resource 참조
name으로 참조 # 참조할 리소스에 name 적용 Ext.define('Home.view.main.Main', { extend: 'Ext.container.Container', xtype: 'main', requires: [ ], title: 'Home', layout: 'border', items: [{ region: 'north', height: 50, bodyStyle: 'background-color:black', html: ' Home' }, { region: 'west', width: 200, xtype: 'leftmenu', }, { region: 'center', xtype: 'tabpanel', // 다른 곳에서 참조할 리소스에 name 정의 name: 'content', items: ..
2024.03.31 -
Sencha Tip
Ext.Boot.baseUrl 현재 자신의 URL 정보 가져오기 스크립트 변수 사용해서 객체 생성 let title = 'abc'; let panel = Ext.create(url, { // 자바스크립트 변수를 title에 적용 title: title, autoShow: true, autoDestory: true }); content.add(panel); content.getLayout().setActiveItem(panel); 객체 자동 보이기, 자동 삭제 설정 let panel = Ext.create(url, { title: 'abc', autoShow: true, autoDestory: true });
2024.03.30