| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
|
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. |
|
|
|
|
|
#2 |
|
anything...are you sure?
Join Date: Jul 2001
Location: Mexico City
Posts: 560
|
you have to do a loop with a time-off to let flash know if something goes wrong, and then call the error function, else, the other function.
![]() |
|
|
|
|
|
|
|
|
#3 |
|
Worldkit Vote Holder
|
yep.
An if statement within a getTimer function would do... That means the getTimer function would give you a number, constantly in change. The if statement would do something if the number given by getTimer is -let's say- divisible by 1000, which would be like once a minute...
__________________
Cordially, Abelius Commuting between Birmingham, AL, Miami, FL and Beijing, China http://www.worldkit.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|