Function GetfeMale ()
{
// The first parameter is the URL of the WebService, and the following is the name.
Female.useService ("news.asmx? WSDL", "news");
/ / Set a callback function, the callback is called when the service returns; the first parameter is the name of the callback function, which is the parameter of the webservice.
IntCallID =
Female.news.CallService (female_Result, "getPhoto", "female"); // There are two parameters here .....
}
Function feed (Result) // callback function
{
IF (Result. Error)
{
Female.innerhtml = result.errordetail.string;
}
Else
{
Female.innerhtml = Result.Value; // written to the result of WebService such as DIV
}
}
script>
Page Display section:
OK, this gives us a way to provide a dynamic content in static page; here if you add timing calls to a getFemale () function, it is a mechanism for unfiffiable update pages. The disadvantage is that WebService will have a certain delay, even the local WebService is much slower than the static page, and it will feel uncoordinated in the first open page.