All pastes #135900 Raw Edit

Stuff

public text v1 · immutable
#135900 ·published 2006-08-17 08:21 UTC
rendered paste body
<button id="SearchButton">
	<click><invokeMethod target="helloService" method="invoke" /></click>
</button>


this is the way you define which server method is invoked when the button is cliked, i get this. But this method is executed asynchronously and i need to do some things with the result it returns from processing. How do i define which method uses its return value? 
Remember, in  the classic way you got this: 1 js function lauches the server execution. 2 - th server method does  some stuff. 3 - another js function uses the result returned by the server method after it finishes. Don't i need the third method anymore?