hi there,
I'm getting a "Forbidden" error on my xml respons and I'm not sure what it means...
Hers's my code:
Please note, I have a AutoEmailManager.js file that contains the following code. I have a webUserControl that uses this .js file and it is called: "ucAutoEmailManager.ascx". If you look carefully, when I'm doing the AJAX call, I'm basically calling this user control again... is that allowed (am I allowed to do an AJAX call from x.ascx to x.ascx?)
I'm getting a "Forbidden" error on my xml respons and I'm not sure what it means...
Hers's my code:
Please note, I have a AutoEmailManager.js file that contains the following code. I have a webUserControl that uses this .js file and it is called: "ucAutoEmailManager.ascx". If you look carefully, when I'm doing the AJAX call, I'm basically calling this user control again... is that allowed (am I allowed to do an AJAX call from x.ascx to x.ascx?)
Code:
//performs the ajax call:
function Display()
{
url = "ucAutoEmailManager.ascx" +
"?" + "op" + "=" + "DISPLAY" +
"&" + "rnd" + "=" + Math.random();
AJAXCall(url, StateHandler_Display);
}
//handles Ajax Response:
function StateHandler_Display()
{
if (req.readyState == 4)
{
if (req.status == 200)
{
document.getElementById("divMain").innerHtml = req.responseText;
}
else
{
alert("There was a problem retrieving the HTML data:\n" +
req.statusText);
}
}