Hi,
I followed the video [URL=”http://www.asp.net/learn/ajax-videos/video-118.aspx”]“How Do I: Implement the AJAX Incremental Page Display Pattern?”
The code goes like that:
<“javascript” type=”text/javascript”>
function pageLoad() {
ret = WebService.FetchPartOne(OnCompleteOne, OnTimeOut, OnError);
}
function OnCompleteOne(result) {
document.getElementById(‘div1’).innerHTML = result;
}
function OnTimeOut(result) {
document.getElementById(‘div1’).innerHTML = ‘Timeout’;
}
function OnError(result) {
document.getElementById(‘div1’).innerHTML = ‘Error’;
}
// –>
I need to pass parameter to OnComplete, to set the target div to fill with the webservice result:
Something like this:
function OnCompleteOne(result, [B]TagetID
document.getElementById([B]TagetID
}
What’s the right syntex to OnCompleteOne, and PeopleService.Search?
Thanks!
Z