extjs

Ext.Ajax.Request not working in Browser

江枫思渺然 提交于 2019-12-14 03:17:29
问题 Ext.Ajax.Request doesn't seem to work on desktop web browsers for me. It works perfectly fine on devices and on the xcode simulators but on desktop web browsers, it calls on the failure method. Here is the code: // send ajax request Ext.Ajax.request({ url: 'http://testapp.cloudapp.net/index.php/api/accounts/login/', method: 'POST', params: { username: Ext.getCmp('username').getValue(), password: Ext.getCmp('password').getValue() }, dataType: 'json', success : function(response, request) { if

Cannot add listeners to store in ExtJS Controller

[亡魂溺海] 提交于 2019-12-14 02:52:28
问题 In my application I have a button in a toolbar. If I click on this button to open a window following code is executed: [...] onClick: function() { this.windowControl = this.getController('attributesearch.Window'); this.windowControl.init(); this.windowControl.showWindow(); } [...] This window contains some inputfields and a combobox with a store: Ext.define('EM.store.AttributeQuery', { requires: ['EM.model.AttributeQuery'], model: 'EM.model.AttributeQuery', proxy: { type: 'ajax', url: './app

Dispalying more than one message box one after other

浪尽此生 提交于 2019-12-14 02:28:25
问题 I have requirement to show multiple info/alert messages one after other. Here is my sample code var messageQueueStore = Ext.create('Ext.data.Store', { fields: ['type','Title','text','buttonConfig','callback'], storeId: 'messageQueueStore' }); function displayMessage(type, Title, Text, buttonConfig, callback){ messageQueueStore.loadData([{type: type, Title : Title, Text: Text, buttonConfig:buttonConfig, callback:callback}], true); if(!Ext.MessageBox.isVisible()){ displayEachMessage(); } }

Scope Problems, Sencha, Getting Data passed to view from controller in items?

蓝咒 提交于 2019-12-14 02:11:55
问题 I am passing a record in from the controller via: showDetail: function (list, record) { this.getMain().push({ xtype: 'leaddetail', data: record.data }); }, My View: Ext.define('ApexChat.view.LeadDetail', { extend: 'Ext.Panel', xtype: 'leaddetail', init: function() { debugger; }, config: { styleHtmlContent: true, scrollable: 'vertical', title: 'Details', frame: true, labelwidth: 75, items: [ { xtype: 'fieldset', columnWidth: 0.5, collapsible: true, title: 'Lead Information', defaultType:

ExtJS 4 Spring 3 file upload. Server sends bad response content type

こ雲淡風輕ζ 提交于 2019-12-14 02:04:02
问题 I was creating file upload using ExtJS 4 frontend and Spring 3 as backend. File upload works, but the response from server has wrong content type. When I send {success:true} using Map<String, Object> serialized by Jackson, ExtJS returns error Uncaught Ext.Error: You're trying to decode an invalid JSON String: <pre style="word-wrap: break-word; white-space: pre-wrap;">{"success":true}</pre> Why is my response wrapped with <pre> tag? I've searched and found out that I should change response

OpenLayers - how do I draw a multipolygon?

主宰稳场 提交于 2019-12-14 01:55:57
问题 I don't is this the right way to do this, but OpenLayers draws only the last polygon from array of polygons. Here is my code: for (...) { var pointList = []; var polygonList = []; for (...) { var newPoint = new OpenLayers.Geometry.Point(..X,...Y); pointList.push(newPoint); } var linearRing = new OpenLayers.Geometry.LinearRing(pointList); var polygons = new OpenLayers.Geometry.Polygon([linearRing]); polygonList.push(polygons); } var style_polygon2 = { strokeColor: "#05fbff", strokeOpacity: 1,

Do ExtJS charts perform better than FusionCharts?

泪湿孤枕 提交于 2019-12-14 01:38:37
问题 We're thinking about replacing FusionCharts with ExtJS charts in our application, since: We already use ExtJS for our entire UI. It would be nice to remove the overhead and expense of another commercial third-party dependency and API. We'd like to be able to display these charts on Flash-less mobile devices. It's much harder to extend and manage FusionCharts' Flash components than normal DOM objects. A few particular pages of our app are chock full of charts (on the order of hundreds of spark

sencha touch override ext.ajax

喜欢而已 提交于 2019-12-14 00:41:08
问题 I'm writing a sencha touch app using sencha architect. Because my app do lot of ajax request, most of it need to send 'token' in request header for authentication. So I think of create child class base on Ext.Ajax which always has 'token' in request header. Then I can use this child class without care of the header. MyApp.override.Ajax.request({ ... }) I try define this in app/override/Ajax.js Ext.define('Myapp.override.Ajax', { override: 'Ext.Ajax', headers: { 'token': 'test' } }); I also

Extjs Treepanel: CSS to change default icons (node and leaf)

我怕爱的太早我们不能终老 提交于 2019-12-14 00:19:53
问题 I have a tree panel like http://jsfiddle.net/bmbMy/ I try to change default icons (node and leaf) by using css. But that not working. .x-grid-row .x-grid-tree-node-expanded { background: url('http://icons.iconarchive.com/icons/sekkyumu/developpers/16/Play-Green-Button-icon.png') no-repeat center center !important; } .x-grid-row .x-grid-tree-node-leaf { background-image:url('http://icons.iconarchive.com/icons/graphicrating/koloria/16/Button-Play-Pause-icon.png'); } How can i do that thanks 回答1

sencha touch 2 the key “minimum-ui” is not recognized and ignored

女生的网名这么多〃 提交于 2019-12-13 22:20:13
问题 my Project structure is below. ControllerConfiguration.java package org.java.springmvc.bootstrap; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.view.InternalResourceViewResolver; @Configuration @EnableWebMvc @ComponentScan(basePackages = "org.java.springmvc