PDA

View Full Version : [UNKNOWN]3.1.0-combobox droplist doesn't work properly



bbbxixixixi
28 Jan 2010, 1:44 AM
source code


new Ext.form.ComboBox({
id: 'teamSelect',
fieldLabel: 'Member to',
hiddenName: 'user.team.team_id',
store: new Ext.data.JsonStore({
root: 'root',
fields: [
{
name: 'teamId',
mapping: 'team_id'
},
{
name: 'teamName',
mapping: 'teamName'
}
],
proxy: new Ext.data.ScriptTagProxy({
url: 'team!getAllTeam.action'
})
}),
editable : false,
forceSelection: true,
loadingText: 'loading team....',
value: null,
valueField: 'teamId',
displayField: 'teamName',
typeAhead: false,
triggerAction: 'all'
})
My local computer show droplist well,both on IE and FireFox.
http://www.gamerhome.net/bbs/attachments/month_1001/10012814377abe0e6018645ca8.jpg
when I try on the other machine,FireFox perform as well as the above,but IE,on the other hand...
the first time I click,keeps loading forever.I assure the background function return data as before.
http://www.gamerhome.net/bbs/attachments/month_1001/10012814377603aa61f4093cec.jpg

reclick,it submit no requests
http://www.gamerhome.net/bbs/attachments/month_1001/1001281437ab700df643af45e3.jpg

Condor
28 Jan 2010, 1:46 AM
What's the difference between the IE on your local machine and the other one?

ps. Are you sure the returned javascript from 'team!getAllTeam.action' doesn't contain any trailing commas?

bbbxixixixi
28 Jan 2010, 2:03 AM
local machine is IE8,the other is IE6

I also try IE7,it's ok


there are no trailing commas, I am sure

Condor
28 Jan 2010, 3:26 AM
First thing you should do is check if the loadexception (or exception) event is fired on the combobox store (when viewing with IE6). If yes, then examine the event arguments to determine the problem.

ps. Could the security settings in IE6 have anything to do with this problem?

bbbxixixixi
28 Jan 2010, 6:59 PM
I see that there is a js error report as follow:


line: 21299
char: 9
error: arg invalid
code: 0
url: http://192.168.1.49:8080/im
But I think it's quite hard for me to debug it for the time being.So I will postpone this matter.IE6 is getting out of tide.>:)