David Chandler's Journal of Java Web and Mobile Development

  • David M. Chandler

    Web app developer since 1994 and Google Cloud Platform Instructor now residing in Colorado. Besides tech, I enjoy landscape photography and share my work at ColoradoPhoto.gallery.

  • Subscribe

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 223 other followers

  • Sleepless Nights…

    November 2004
    S M T W T F S
  • Blog Stats

    • 1,033,666 hits

Updated Example Code for CFDJ article on Web State Machine

Posted by David Chandler on November 23, 2004

Here is the complete example code that goes with my Web State Machine article in the October CFDJ.

Just unzip the files into your web root and set up a “Northwind” data source pointing to the Northwind sample database that comes with SQL Server. To run it, use http://localhost/WebStateMachine/flowctl.cfm?event=startFlow.

I’ve made a few improvements: notably, replacing the submit buttons with <input type=”button”> and using on onclick handler to call a JavaScript function that sends an event to the flow controller. This is less restrictive than using a named submit button, in which the event name is also the button text.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: