mdm-adph
30 Aug 2007, 1:16 PM
NAB_Proxy_Url = "/names.nsf/($VIMPeopleByLastName)?readviewentries&Count=10&StartKey=";
NAB_Proxy = new Ext.data.HttpProxy({
url: NAB_Proxy_Url
});
NAB_Store = new Ext.data.Store({
proxy: NAB_Proxy,
reader: new Ext.data.XmlReader(
{
record: "viewentry",
id: 'address'
},
[
{name: "address", mapping: "entrydata[@columnnumber=1] > text"},
{name: "first", mapping: "entrydata[@columnnumber=2] > text"},
{name: "middle", mapping: "entrydata[@columnnumber=3] > text"},
{name: "last", mapping: "entrydata[@columnnumber=0] > text"}
]
)
});
var combo_names = new Ext.form.ComboBox({
allQuery: "",
displayField: 'address',
emptyText: 'Select an address...',
loadingText: 'Searching...',
resizable: true,
selectOnFocus: true,
store: NAB_Store,
triggerAction: "all",
typeAhead: true,
width: 300
});
combo_names.on("beforequery", function (e) {
NAB_Proxy.conn.url = NAB_Proxy_Url + e.query;
});
combo_names.applyTo('MemberName');Just something unrelated to Ext.nd (but related to Ext on Notes/Domino) that I've been working on. I've gotten it working in Firefox, but IE 6 is buggy as hell -- you can't enter backspace in the "MemberName" field without the page going backwards in the history. It's like the keystroke isn't being picked up or something.
Has someone here developed something similar that works better?
"($VIMPeopleByLastName)" is just a custom view in my organization's address book.
NAB_Proxy = new Ext.data.HttpProxy({
url: NAB_Proxy_Url
});
NAB_Store = new Ext.data.Store({
proxy: NAB_Proxy,
reader: new Ext.data.XmlReader(
{
record: "viewentry",
id: 'address'
},
[
{name: "address", mapping: "entrydata[@columnnumber=1] > text"},
{name: "first", mapping: "entrydata[@columnnumber=2] > text"},
{name: "middle", mapping: "entrydata[@columnnumber=3] > text"},
{name: "last", mapping: "entrydata[@columnnumber=0] > text"}
]
)
});
var combo_names = new Ext.form.ComboBox({
allQuery: "",
displayField: 'address',
emptyText: 'Select an address...',
loadingText: 'Searching...',
resizable: true,
selectOnFocus: true,
store: NAB_Store,
triggerAction: "all",
typeAhead: true,
width: 300
});
combo_names.on("beforequery", function (e) {
NAB_Proxy.conn.url = NAB_Proxy_Url + e.query;
});
combo_names.applyTo('MemberName');Just something unrelated to Ext.nd (but related to Ext on Notes/Domino) that I've been working on. I've gotten it working in Firefox, but IE 6 is buggy as hell -- you can't enter backspace in the "MemberName" field without the page going backwards in the history. It's like the keystroke isn't being picked up or something.
Has someone here developed something similar that works better?
"($VIMPeopleByLastName)" is just a custom view in my organization's address book.