function addToFavorites(prod, box) {
var favPage;
var response;
if (box.checked == true) {
favPage = "xyz.aspx?type=add&product=" + prod;
} else {
favPage = "xyz.aspx?type=remove&product=" + prod;
}
var oXMLHttpRequest = new XMLHttpRequest;
oXMLHttpRequest.open("GET", favPage, true);
oXMLHttpRequest.onreadystatechange = function () {
if (this.readyState == XMLHttpRequest.DONE) {
response = "" + this.responseText;
}
}
oXMLHttpRequest.send(null);
}
I am using the above javascript to call a page on check box click.It is working fine on my visual studio project.
But when i deploy that it is not working.javascript is calling but not able to call that page.
I am using visual stuido 2008 / 3.5 as my devlopment server.