ext

Editable GRID (ExtJS) using PHP+MySQL

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a little trouble with understanding of recording data to MySQL database. Now, I have some table in my DB showing in Grid. I attached an Editor, but i don't know, how to use it correctly (sending editable data into a php-script). May I ask for help? Thanks. view.js Ext.onReady(function() { var cols = [ { dataIndex: 'id', header: 'id', hidden: true }, { dataIndex: 'title', header: 'Title', width: 200, editor: 'textfield'}, { dataIndex: 'author', header: 'Author', width: 200, editor: 'textfield' }, { dataIndex: 'isbn', header: 'ISBN',

Eclipse for php + Xdebug搭建PHP的调试环境

可紊 提交于 2019-12-03 05:34:29
Eclipse for php + Xdebug搭建PHP的调试环境 时间 2014-01-25 00:53:55 CSDN博客 原文 http://blog.csdn.net/zztfj/article/details/18750295 Eclipse for php + Xdebug搭建PHP的调试环境 第一步:到Eclipse的官网去下载PHP-Eclipse: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliossr1 第二步:下载Xdebug (下载地址位于: http://xdebug.org/download.php ,我的PHP版本为 PHP 5.3.28 Thread Safety, Apach为2.2.25,使用的端口号8080),我下载的Xdebug版本为 php_xdebug-2.2.3-5.3-vc9.dll ,并且放入到"PHP/ext目录中。 第三步:在PHP5里面找到php.ini,在这个文件的最后面加入如下配置信息: zend_extension = D:\php\ext\php_xdebug-2.2.3-5.3-vc9.dll ;zend_extension_ts = D:\php\ext\php_xdebug-2.2.3-5.3-vc9.dll

ImportError: No module named flask.ext.login

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with flask_login module. i have installed flask_login module successfully. Also from the command prompt i can run this script easily with no error: Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from flask.ext.login import LoginManager But when I am running this script: from flask import Flask from flask.ext.login import LoginManager app = Flask(__name__) @app.route("/") def hello(): return "Hello World! Welcome" if

Add (right) Button to Sencha Navigation View

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to dynamically add a (right aligned) button to the active navigation view depending on view Im showing. Is there any proper way to do it? I found many half good examples online, but didnt get them to work. Here is what I tried: Ext.define('Sencha.view.user.Login', { extend:'Ext.navigation.View', //fullscreen: true, xtype: 'loginview', requires:[ 'Ext.form.FieldSet', 'Ext.field.Email', 'Ext.field.Password' ], config: { title: 'Log in', iconCls: 'use', cls: 'kidsbackground', scrollable: false, navigationBar: { items: [ ] }, items:[ {

Extjs component inside Ext.XTemplate on EXTJS 4

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to add extjs components to tpl panel. Is there anyway to insert component to tpl like this 回答1: Try this Ext.create('Ext.panel.Panel', { renderTo: Ext.getBody(), data: {}, listeners: { refresh: function() { var renderSelector = Ext.query('div.comment-add-textarea'); for (var i in renderSelector) { Ext.create('Ext.form.field.TextArea', { height: 300, renderTo: renderSelector[i] }); } } }, tpl: Ext.create('Ext.XTemplate', '<tpl for=".">', '<div class="comment-add-textarea"></div>', '</tpl>', { compiled: true }) }); 文章来源: Extjs

ExtJS 4 Change grid store on the fly

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it posible to change grid's store in ExtJS 4? For example, i have two models: User = Ext.define('User',{ extend: 'Ext.data.Model', [...], hasMany: 'Product' }); Product = Ext.define('Product',{ extend: 'Ext.data.Model', [...] }); and two grids. The first grid is linked with Store which uses User model and loads nested json data from backend, like { users: [{ id: 1, products: [ {id: 1}, {id: 2} ] }, { id: 2, products: [ {id: 3}, {id: 4}, {id: 5} ] }] } All i want to get is when you click on the row in the first grid, the second grid must

Ext 4.2 Using proxy to save tree

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: when I use insertChild() or Sync(), proxy sends GET to server with just _dc param, what I should do to save my tree via proxy? EDIT:added writer, now ext doing POST but with no data write listener also didn't call Ext.define('App.model.FileTree', { extend : 'Ext.data.Model', fields : [ {name : 'id', type: 'string'}, {name : 'name', mapping:'name', type: 'string'}, {name : 'text', type: 'string'}, ] }); Ext.define('App.store.FileTree', { extend: 'Ext.data.TreeStore', alias:'filestore', model : 'App.model.FileTree', proxy: { actionMethods: {

How do you include a UX class in the MVC pattern?

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Before the MVC pattern I would include UX classes simply by including this at the top of the JS, before Ext.onReady : Ext.Loader.setConfig({enabled: true}); Ext.Loader.setPath('Ext.ux', 'extjs/examples/ux'); Ext.require([ 'Ext.ux.grid.FiltersFeature' ]); Now I am working with the MVC pattern and I have a gridpanel that needs to use this same feature. I've included a requires statement in the view like this: Ext.define('ST.view.StudentLog', { extend: 'Ext.grid.Panel', alias: 'widget.studentlog', requires: [ 'Ext.ux.grid.FiltersFeature' ], But

PHP Fatal error: Call to undefined function mssql_connect()

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've never used php before and am trying to connect to a SQL Server 2008 instance on a Windows machine running IIS7 and PHP5.3. I have downloaded and installed SQLSRV30.EXE from here in C:\Program Files (x86)\PHP\ext added this to C:\Program Files (x86)\PHP\php.ini : extension=php_sqlsrv_53_nts.dll Then restarted the entire server. I still get fatal errors in my log file saying: PHP Fatal error: Call to undefined function mssql_connect() What do I need to do to connect to Microsoft SQL Server 2008 from PHP 5.3 running on IIS7/Windows Server

ExtJS Model Validations: Dates (How to)

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What's the best way to go about adding validation to a date field in a model Ext.define('User', { extend: 'Ext.data.Model', fields: [ {name: 'name', type: 'string'}, {name: 'age', type: 'int'}, {name: 'phone', type: 'string'}, {name: 'gender', type: 'string'}, {name: 'username', type: 'string'}, {name: 'alive', type: 'boolean', defaultValue: true} ], validations: [ {type: 'presence', field: 'age'}, {type: 'length', field: 'name', min: 2}, {type: 'inclusion', field: 'gender', list: ['Male', 'Female']}, {type: 'exclusion', field: 'username',