PDA

View Full Version : how to catch Ext.data.ScriptTagProxy http 500 error



yh1350
3 Sep 2010, 8:12 PM
var store = new Ext.data.JsonStore({
root: 'topics',
remoteSort: true,
fields: ['prd_yn','pro_id'],
proxy: new Ext.data.ScriptTagProxy({url: 'return_ordd.jsp'})
//how to catch the return_ordd.jsp http 500 error
});

var grid = new Ext.grid.GridPanel({
width:'96%',
height:250,
title:'??????:',
store: store,
//?????????
trackMouseOver:true,
//disableSelection:true,
//??load
loadMask: true,
// grid columns
columns:[
new Ext.grid.RowNumberer(),
{header: "??",width: 100,sortable: true,align: 'left',dataIndex: 'prd_yn'},
{header: "????",width: 120,sortable: true,align: 'left',dataIndex: 'pro_id'}
],
//??????
stripeRows: true
});
grid.render('topic-ordd');
store.load();

Animal
3 Sep 2010, 11:26 PM
Obviously you can't

But why use script tag?

yh1350
4 Sep 2010, 12:36 AM
not use script tag, use what? sorry,I'M rookie ,I just look [Paging Grid Example]

Animal
4 Sep 2010, 12:56 AM
another form of proxy which is not documented to operate by appending <script> tags

yh1350
4 Sep 2010, 4:18 AM
another form of proxy which is not documented to operate by appending <script> tags
sorry,I still do not understand,could you get an Example for me,thanks

Animal
4 Sep 2010, 8:06 AM
Well, you used the API docs to find out how to create a Store with a Reader and a Proxy. See that ScriptTagProxy entry in the API doc that you used? There's another type of Proxy.