0
我遇到了一個問題,從服務器返回的某些值會在螢火蟲中拋出一個「code 12」,並導致在extjs中浮動的「Loading」消息永遠不會消失,似乎掛在我的頁。這個問題只發生在Firefox中。我發現我可以通過將「&」放入GridPanel中的其中一個值中來持續複製此問題,但其他值(如富文本格式)有時也會拋出代碼12.我發現如果我進入歌劇的頁面,我可以修復我的網格面板中的數據並將其保存到服務器。然後刷新Firefox頁面,一切都回到原來的樣子。是否有一些分隔符或我可以將這些值放在這些值以避免發生?我extjs可以讓我保存一些東西到服務器,我不明白如何讓它回來導致一個問題。Firefox在extjs 2.2中拋出一個錯誤JsonStore
在螢火:
An invalid or illegal string was specified" code: "12
[Break On This Error] (function(){var D=Ext.lib.Dom;var E=Ex...El.cache;delete El._flyweights})})();
例JSON從服務器返回(注意 「200 & 5」 會導致錯誤, 「200和5」 將正常工作)
{"summaryList":[{"shot":"","seq":"200 & 5","active":9998,"tag":"","file":"","id":"137943329348950905822686689581598049837","quick_comments":"","comments":"","priority":"","asset":"","prod":"dragon","type":"","store":"","submitby":"jstratton","status":"ip","format":"","date":"2011_5_10","approval":"hofx_pm","name":"jstratton","notes":"","uri":"137943329348950905822686689581598049837","dept":"fx","time":"10 May 2011 13:56:30","order":2}], "success":true}
的JSON商店和GridPanel
var summaryStore = new Ext.data.JsonStore({
url: 'summaryList',
root: 'summaryList',
baseParams : {
show: showSelect.getValue(),
dept: deptSelect.getValue(),
approval: typeSelect.getValue(),
roundDate: roundDateField.getValue(),
user: summaryUser.getValue(),
},
autoLoad: true,
fields: [],
});
var summaryGrid = new Ext.grid.GridPanel({
store: summaryStore,
columns : [],
// turn off multi-selection for now
tbar : [activeButton,
removeButton,
' ',
exportToSpreadsheetButton,
refreshButton,
],
renderTo: 'summaryTab',
autoHeight: true,
loadMask: {msg: 'Loading information. Thank you for your patience.'},
autoExpandColumn: 'comments',
autoSizeColumns: true,
ddGroup: 'summaryGridDD',
enableDragDrop: true,
viewConfig: {
forceFit: true,
},
titleCollapse : true,
collapsed: false,
stripeRows: true,
title: 'Summary',
frame: true,
});
我在面板中輸入時會看到顯示錯誤,因此要求用戶自行轉移事物並不實際。 – voodoogiant 2011-05-31 20:10:34
這就是爲什麼你需要自己逃避內容! – 2011-06-02 21:57:07