Page 1 of the application

A phpWebApp Application is Like a State Machine

The phpWebApp thinks of a web application as a state machine, where each state is a web page. Each time the browser loads something new in its window, you see a snapshot of the application in a certain state. For example, this sample application can be described by the following state diagram:

A state diagram that represents three pages of the application as three states

Transitions by GoTo()

Transitions from one page of the application to another are done by using the javascript function GoTo('page.html'). This function is declared by the framework itself and is included automatically at the end of each page of the application. Make a 'View Source' now and see that there is some code appended to the page by the framework.

In real applications, usually GoTo() is called from inside a JavaScript function, after making some input data validations etc. E.g. try this link: test wich calls the JavaScript function on_test().

Go To [ Page 1 | Page 2 | Page 3 ]

Back Home