6 May 10:38
Re: dwr.util.addOptions problem to show drop down menu please help
From: Lance Java <lance.java@...>
Subject: Re: dwr.util.addOptions problem to show drop down menu please help
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 08:38:47 GMT
Expires: This article expires on 2008-05-20
Subject: Re: dwr.util.addOptions problem to show drop down menu please help
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 08:38:47 GMT
Expires: This article expires on 2008-05-20
RTM! http://getahead.org/dwr/overview/dwr
function viewCities(value){
TestDWR.getCities(value, function(cities {
dwr.util.addOptions("citiesReply", cities);
});
}
Cheers,
Lance.
Cheers,
Lance.
2008/5/6 HANI YOUNIS <hanijy-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>:
i have this class that i want to get cities for each country here the code:public class TestDWR {
public ArrayList getCities(String value){
ArrayList countriesList=new ArrayList();
if(value.equals("1")){
countriesList.add("Amman");
countriesList.add("Jerash");
}else if(value.equals("2")){
countriesList.add("Jerusalem");
countriesList.add("Haifa");
}else if(value.equals("3")){
countriesList.add("Macca");
countriesList.add("Madina");
}
return countriesList;
}}it works perfectly when i test it through:but i dont know how to see it work in my jsp my last trial like this:function viewCities(value){
// alert("value="+value);
dwr.util.addOptions("citiesReply",TestDWR.getCities(value));
}where citiesReply is the name of drop down list.please help.Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
RSS Feed