Stateless Rich Display
About This Space
Stateless demo app, where the mobile client or the browser would control the flow of the application
Last updated on November 9, 2019
Public Permissions: View Open/Fork Run Comment
Stateless Rich Display Template
NodeRun Rich Displays are screens you create with the Visual Designer tool. Rich Display applications are automatically intended to be Single Page Apps, meaning the browser page never reloads. There are two methods for deploying Rich Display applications:
Stateful: where a server session is automatically established and the server controls the flow of the application; this is great for transactional process-oriented apps
Stateless: where the browser or mobile client controls the flow of the application and and server data is requested via AJAX calls as necessary; this model is great for event-driven applications, or applications where a server connection is not guaranteed
This template illustrates how a stateless application is created.
start.html file
The starting point for a Rich Display stateless application is a simple HTML file that links to the Profound UI JavaScript & CSS runtime files.
pui.show() API
To display a Rich Display screen, the client-side pui.show() API is used. More information about this API can be found here: http://www.profoundlogic.com/docs/pages/viewpage.action?pageId=4850033
Using Widget Events
Unlike stateful applications, where the typical user action sends a response to the server (via properties like "response" on a button), stateless applications typically use events. All Rich Display widgets contain a variety of events, such as onclick. You can type any client-side code directly into those events.
More Spaces By ChatChii iClassic (@chatchii-iclassic)
- 1
- 2
4730
0
0
4874
0
0
4618
0
0
4509
0
0
4358
0
0
4562
0
0
This is a simple demo of Fibers! Fibers simplifies code by avoiding messy code known as "callback hell", "promises hell", or "async/await hell". Once Fibers is setup, you never have to think about callbacks or promises (they are handled automatically for you).
4639
0
0
4571
0
0
- 1
- 2
Be the first to comment:
Comments