extjs

ExtJS AJAX: XMLHttpRequest cannot load

≯℡__Kan透↙ 提交于 2020-01-25 20:19:12
问题 New to ExtJS. All of the files below exist within the same directory (code below) - not sure why I'm getting the following error. Do I need to be using a server even though the data is stored in the directory? I'm getting the following on the Chrome console: XMLHttpRequest cannot load file:///C:/Users/Jeff/Development/workspace_extjs/Chapter%2007/JSON_data/data.json?_dc=1406036611330&page=1&start=0&limit=25. Received an invalid response. Origin 'null' is therefore not allowed access. JSON

Calling the items.add method twice causes the two items to overlap on the card

China☆狼群 提交于 2020-01-25 11:28:07
问题 Here is my add item code: myapp.cards.vehicleInfo.items.add( new Ext.List({ ...}) ) If after this I then do: myapp.cards.vehicleInfo.items.add( new Ext.Panel( {html: 'test' } ) ); The panel with 'test' appears on top of my list (overlapping), rather than vertically below it. I have tried doing a componenet dolayout inbetween adding the two items. Any ideas? If I only do one or the other of the above it works as expected but if I do both together it leads to the above behaviour. Thanks 回答1:

Fix the width and height of the table td

拟墨画扇 提交于 2020-01-25 11:21:04
问题 In my project, I am trying to fix the width and height of td 's by doing the following: td{ max-width:100px; max-height:100px; width:100px; height:100px; overflow:hidden; word-wrap:break-word; /* CSS3 */ } Here is the fiddle But as you can see in the fiddle, the td is increasing in height if the content in it is increasing. Anyway to fix it? Please give a solution which is cross-browser . If there is a fix available in extjs then that could also help me. PS: I know using div's it can be

Not able to update parent for all PortfolioItem/Feature which I copied for particular PortfolioItem/MMF

六月ゝ 毕业季﹏ 提交于 2020-01-25 11:05:10
问题 I am trying to set parent for features which I copied for particular MMF, but parent is getting set for only last feature. Below line of code to set the parent Record is new feature object _newParent is the MMF object, where I am doing wrong record.set("Parent", _newParent.get("_ref")), Need help please.Any suggestions? Whole is method is this _genericInnerCopy: function(_childObj) { that = this; model = that.model; var record = Ext.create(model, { Name: _childObj.get('Name'), //Parent:

Encode form data while fileupload true in Extjs Form Submit

吃可爱长大的小学妹 提交于 2020-01-25 09:25:06
问题 I have a ext form with textfield and one filefield . Without filefield form is working fine, and when submit the form data sending with encoded format. But When set fileupload = true , form data sending with different format. with fileupload data sending like.. form data name: abc, email: abc@gmail.com When not set fileupload data sending like.. data="%5Bobject%20Object%5D" But I want to send data encoded format with fileupload also. How can I do this, please share some idea.Thanks in advance

Where to programmatically set column filters when using a spreadsheet selModel?

送分小仙女□ 提交于 2020-01-25 00:06:25
问题 This is a follow up question that I got answered here: How can I programmatically set column filters? I have a 188 line Ext.js view. In this view I extend Ext.grid.Panel and in this grid I have set the selModel like so ... selModel: { cellSelect: false, // Only support row selection. type: 'spreadsheet' // Use the new "spreadsheet" style grid selection model. }, On one of the columns, the Status column, I am programmatically setting the filter so that only rows that have the Status of Ready

Can someone tell me why my background image in Sencha Touch 2 isn't showing?

天大地大妈咪最大 提交于 2020-01-24 20:46:04
问题 Here is my MainView: Ext.define("Test.view.Main", { extend: 'Ext.Panel', config: { cls: 'transp' } }); Here is (the relevant part of) my app.css: /* line 3, ../themes/stylesheets/sencha-touch/default/core/_reset.scss */ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td { margin: 0; padding: 0; } .transp { background-image: url(http://support.sencha.com/assets/images/logo-sencha.png); background-repeat: no

Sencha Touch Deployment Options?

亡梦爱人 提交于 2020-01-24 20:37:07
问题 I am very new to ExtJS and Sencha Touch. I am trying to learn Sencha Touch, and was able to get a demo version running locally using 'sencha watch'. But I want to deploy this somewhere like Heroku, Azure, AWS or wherever. How do I get this in production? I'd appreciate it, CMazz 回答1: How do I get this in production? Developing your application simply means editing source code and refreshing the browser. All source files are dynamically loaded on demand. There's no building process involved.

extjs - center a formPanel on a normal panel

浪尽此生 提交于 2020-01-24 11:54:06
问题 I'm using extjs and just trying to solve a simple problem: I have a form with a fixed width. I want to Center this form within a normal Ext.Panel. I'm trying to achieve this the 'css-way' - setting the left and right margin to 'auto'. But this doesn' work, it seems the margins are just ignored. The Code: var curStateForm = new Ext.FormPanel({ title:'test', width:300, bodyStyle:'margin:5px auto 0 auto', items: [edIst, edAdjust, edSumme] }); var testPanel = new Ext.Panel({ width: '100%', frame

extjs - center a formPanel on a normal panel

二次信任 提交于 2020-01-24 11:53:48
问题 I'm using extjs and just trying to solve a simple problem: I have a form with a fixed width. I want to Center this form within a normal Ext.Panel. I'm trying to achieve this the 'css-way' - setting the left and right margin to 'auto'. But this doesn' work, it seems the margins are just ignored. The Code: var curStateForm = new Ext.FormPanel({ title:'test', width:300, bodyStyle:'margin:5px auto 0 auto', items: [edIst, edAdjust, edSumme] }); var testPanel = new Ext.Panel({ width: '100%', frame