6 May 09:08
dwr.util.addOptions problem to show drop down menu please help
From: HANI YOUNIS <hanijy@...>
Subject: dwr.util.addOptions problem to show drop down menu please help
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 07:12:25 GMT
Expires: This article expires on 2008-05-20
Subject: dwr.util.addOptions problem to show drop down menu please help
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 07:12:25 GMT
Expires: This article expires on 2008-05-20
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");
countries List.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);
&nb sp; dwr.util.addOptions("citiesReply",TestDWR.getCities(value));
}
// alert("value="+value);
&nb sp; 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