Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var content_type_store = new Ext.data.Store({
- proxy: new Ext.data.HttpProxy({
- url: BASE_URL+'questions/content_pie',
- method:'POST',
- params :{hi:''}
- }),
- reader: new Ext.data.JsonReader({
- root: 'results'
- }, [
- 'qtype',
- 'qval'
- ])
- });
- var content_type_store = new Ext.data.Store({
- proxy: {
- type: 'ajax',
- url: BASE_URL+'questions/content_pie',
- extraParams :{hi:''},
- // Here Magic comes
- getMethod: function(request){ return 'POST'; }
- },
- reader: {
- type: 'json',
- root: 'results'
- }
- });
- // ...
- proxy: {
- type: 'ajax',
- url: BASE_URL+'questions/content_pie',
- extraParams :{hi:''},
- // Here Magic comes
- actionMethods: {
- create : 'POST',
- read : 'POST',
- update : 'POST',
- destroy: 'POST'
- }
- },
- // ...
- Ext.define('content_type_model',{
- extend : 'Ext.data.Model',
- proxy : {
- type : 'ajax',
- url : BASE_URL+'questions/content_pie'
- reader : {
- type : 'json',
- root : 'results'
- }
- },
- fields : [{
- name:'qtype', mapping:'qval'}]
- });
- var content_type_store = Ext.create('Ext.data.Store',{
- model : 'content_type_model'
- });
- grid.store.load({
- params : {
- hi :''
- }
- });
Add Comment
Please, Sign In to add comment