Today, I am learning invoking web service by JavaScript. But there is still some problems in my code. And I have some questions about "webservice.htc" file. I put this file in my web site folder. But I don't see any effective of this file. I have no idea about how this file works? If I input 1 and 0 into two textboxes the result is undefined. I think it is the right answer. So I confused a lot. Would you like to give me some guide? Thanks in advance! The snippet codes are as follows:
MathServiceInternetExplorer.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASP.NET AJAX</title>
<script language = "javascript&qu ...
Go to the complete details ...