|
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<a href="http://www.2d99.com\do\001.rm" onclick="javascript:AddDownLoad();">Download</a>
</form>
<script>
function AddDownLoad() {
// The method GetSubCategory is a method that is declared as AjaxMethod() in the background.
// After all the parameters of the method GetSubCategory, add another method name GetSubCategory_backcall as a parameter,
// If the method GetSubCategory has a return value, its return value will be assigned to the first parameter of the method GetSubCategory_backcall
MyAJAX.Test.GetSubCategory(5,GetSubCategory_backcall);
}
To
// The name of this method is arbitrary, the number and names of parameters are also arbitrary, but the AJAX method
// The return value will only be assigned to the first parameter
function GetSubCategory_backcall(response)
{
var dt = response.value;
alert(dt);
}
</script>
</body>
</html> |
|