combo dynamic options

Is there a way to dynamically change the options in a combo or a rich select and get the new values from a URL ?
like the .load() function in a list for example.

Yes. In both cases you can use

var list = combo.getPopup().getList();
list.clearAll();
list.load(url);

i tried this ,
list.load(("./Connector/Test.cfm"), “xml”);
but it loaded undefined values.
in the Test.cfm i am using the dataview connector.

its OK, i got it.
i was missing this list.define(“template”, “#title#”);

after populating the combo with the above code, If i start typing in the combo it does not filter the options.
is there anyway to make it filter again.

You should redefine default combo filter to match your list template (e.g. #title#)

combo.getPopup().define('filter', function(item, value){
    if(item.title.toString().toLowerCase().indexOf(value.toLowerCase())===0)  
         return true;
    return false;
}); 

In combo configuration it looks like this:

{ view:"combo", options:{
   filter:function(item, value){
      if(item.title.toString().toLowerCase().indexOf(value.toLowerCase())===0) 
          return true;
      return false;
},
 body:{
   template:"#title#"
 }
}}

thanks Helga