Charles
06-22-2002, 07:25 AM
I am having a problem trying to implement some exception handling with FlashMX Remoting. Currently when a user logs on to the site a function is called that ask the DBMS if the current user name and password are correct. If the server where to fail(I purposely turned it off) the site would never advised the user that an error had occurred or that the server was unreachable.
I am excepting the default responder in the service Object which makes the function call have the following syntax:
serObjCatSite.ValidateUser(UserName_txt.text,Pass_ txt.text);
I then have the following 2 functions:
function ValidateUser_Result(result)
{
//code to do if everything is ok
}
function ValidateUser_Status(error)
{
//code to do if an error occurs
}
The ValidateUser_Status() doesn’t work ANY insight as to what I am doing wrong would be GREATLY appreciated.
I am excepting the default responder in the service Object which makes the function call have the following syntax:
serObjCatSite.ValidateUser(UserName_txt.text,Pass_ txt.text);
I then have the following 2 functions:
function ValidateUser_Result(result)
{
//code to do if everything is ok
}
function ValidateUser_Status(error)
{
//code to do if an error occurs
}
The ValidateUser_Status() doesn’t work ANY insight as to what I am doing wrong would be GREATLY appreciated.