This OpenSource WebApp is based upon a request to manage team events from Android, iPhone, Windows and Linux (Raspberry) devices.
The solution is a B4J WebApp, using jQuery Mobile (jQM), JavaScript, WebSockets and an SQLite database, accesible via browser.
Extensive use of jQM dialogs instead of seperate HTML pages is made. All the jQM dialogs are defined in index.html.
The database teem.db contains the two tables Events and Members.
Read teem.b4j, teem.bas and www/index.html for detailed information.
How to get started?
Load teem.b4j and then run OR start the jar file from the Objects folder java -jar teem.jar.
Access the team event list by opening a webbrowser and enter localhost:51042.
To access from another computer in the network, use its http://ipaddress:51042 (like http://192.168.0.10:51042).
How the Team Manager works?
After starting the webserver, the database is initialized. If the database does not exists, it will be created and stored in the webapp folder.
When the webapp is accessed via webbrowser, the file index.html is loaded. Index.html opens the websocket defined in teem.bas.
The teem.bas handler selects the records from the database teem.db (in the objects folder), table Events and updates the events table (using JavaScript).
Buttons
Additional Notes
Many thanks for your interest. Any improvements or further ideas are welcomed.
EDIT 20140527: Some bugs fixed.
The solution is a B4J WebApp, using jQuery Mobile (jQM), JavaScript, WebSockets and an SQLite database, accesible via browser.
Extensive use of jQM dialogs instead of seperate HTML pages is made. All the jQM dialogs are defined in index.html.
The database teem.db contains the two tables Events and Members.
Read teem.b4j, teem.bas and www/index.html for detailed information.
How to get started?
Load teem.b4j and then run OR start the jar file from the Objects folder java -jar teem.jar.
Access the team event list by opening a webbrowser and enter localhost:51042.
To access from another computer in the network, use its http://ipaddress:51042 (like http://192.168.0.10:51042).
How the Team Manager works?
After starting the webserver, the database is initialized. If the database does not exists, it will be created and stored in the webapp folder.
When the webapp is accessed via webbrowser, the file index.html is loaded. Index.html opens the websocket defined in teem.bas.
The teem.bas handler selects the records from the database teem.db (in the objects folder), table Events and updates the events table (using JavaScript).
Buttons
- Login: Login as Manager or Team Member using username as defined in Table Members. Note: Field Password is not used.
- About: Information about this WebApp TeeM.
- Events: Manage Events (add, update, delete).
- Members: Manage Members (add, update, delete).
Additional Notes
- When installing on a webserver, ensure to copy the www folder content. This folder contains all html related files including jQM --- do not forget to copy also after making updates!,
- Clicking on Date or Time, a Date/Time picker is shown based upon DateBox, a Date and Time Picker plugin for jQM (http://dev.jtsage.com/jQM-DateBox/),
- Logging is done extensively using flag CAPPLOG (teem.b4j). Set to false to turn logging off,
- B4J v2.2 or higher is required (strong use of CreateMap),
- To learn more, read the source files. These are well commented,
Many thanks for your interest. Any improvements or further ideas are welcomed.
EDIT 20140527: Some bugs fixed.
Last edited: