PDA

View Full Version : Combobox store with diferent http or https



Forn
12 Apr 2012, 9:31 AM
Hello. I have the next code:


{
xtype: 'combobox',
id: 'cbEditClient',
fieldLabel: 'Выберите клиента для редактирования',
labelAlign: 'top',
anchor: '100%',
store: customersStore,
displayField: 'name',
valueField: 'id',
typeAhead: false,
hideTrigger:true,
listConfig: {
loadingText: 'Выполняется поиск...',
emptyText: 'По заданым критериям клиенты в базе данных не найдены.',
},
listeners:{
'select': cbEditClient_onSelect
}
}

var customersStore = Ext.create('Ext.data.Store', {
pageSize: 10,
model: 'CustomersModels',
proxy: {
type: 'ajax',
url : baseUrl+'?ds=customers',
reader: {
type: 'json'
}
},
});
var baseUrl = 'http://sxxxx.com/index-extjs.php';



I open on the site: http://sxxxx.com/index.php
All works fine, but when i change baseUrl to https combobox dont work after i type some text on it. WHY if i chnage protocol it dont work?

scottmartin
12 Apr 2012, 11:43 AM
If you enter the URL manually, do you get the result you expect?

Regards,
Scott.

Forn
12 Apr 2012, 3:44 PM
Yep. If i copy the url from FireBug panel all is ok the result is as i expected.

And there is one notes: when the htpp + http the URL display in the Console window of FireBug as GET request, but when http + https it display in the Net console with prefix OPTIONS. But when i manualy copy in to the browser the result the same as from http + http.