Have the login component fire an event upon succesful, or failed, login.

Have the 'main app" respond to the event by changing states (or displaying an error).

At 12:23 PM 2/27/2007, you wrote:

Hi,

I'm working on an application, which is component based. One of my components is a Login screen, in which the user enters the username and password, these details are passed to a ColdFusion CFC and checked, the result is then checked.

If the login is successful I want to be able to change the state in the main application file from the Login state to the Home state, originally I tried using:

this.currentState = 'Home';

But this was in the Login component, which doesn't have states, so that didn't work. What is the best practice for components to call the main application to perform tasks like changing the state?

Thanks

Stephen


--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>
Connecticut Macromedia User Group: <http://www.ctmug.com>

Reply via email to