其實只要設置Select的value為你想要顯示的值,然后在調用Web Service中方法成功的時候使用repaint()就可以了!
例如:
service.ongetCountriesResultSuccess = function(objEvent) {
objEvent.target.getServer().getJSXByName("country").repaint();
//var responseXML = objEvent.target.getInboundDocument();
//objEvent.target.getServer().alert("Success","The service call was successful.");
};
jsx3.gui.Painted
repaint()
method repaint()
Updates the view of this object by calling
paint()
and replacing the current view with the returned HTML. This method has no effect if this object is not currently displayed.Returns:
{String} – the result of calling
paint()
or null
if this object is not displayed.See Also:
paint()