今天使用Select的時(shí)候,想在第一次顯示的時(shí)候,就把數(shù)據(jù)顯示出來(lái)。
其實(shí)只要設(shè)置Select的value為你想要顯示的值,然后在調(diào)用Web Service中方法成功的時(shí)候使用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()
posted on 2007-03-30 15:52
周銳 閱讀(296)
評(píng)論(0) 編輯 收藏 所屬分類(lèi):
TIBCO