B4J Tutorials

[BANano] Authentication to a B4J server (REST API)

Here is an example on how to connect with a Jetty B4J server. The example shows how you could use the B4J server to login/logoff and run a basic REST API call.

The project zip file is in post #3...
 
Last edited:

[BANano] TIP: Running a test server

UPDATE: since december 2022, chrome plugins like this have stopped working. Luckcely, the author of this plugin has created a standalone alternative you can install on your computer:

Simple...
 
Last edited:

[BANano] Events

BANano has a simple system to use events:

HandleEvents: does the same as On, BUT prevents the default behaviour
On
: handles one or more events
Off: disables an event

To explain...
 

[BANano] Ajax calls

EDIT 1.04: Method syntaxes have changed!

With BANano, it is easy to make a Ajax call (e.g. to call a B4J REST API method).

There are two ways to do so:

1. Using events (the prefered way...
 
Last edited:

[ABMaterial] TIP: ... and wait for

Maybe this is old news, but I was wondering if wait for could work with ABM events, and it seems they do!

Here for example (it is a page_ event, so I put it in the same class as where the page is...
 
Last edited:

B4JPackager11 - the simplest way to distribute UI apps

Attachments

  • B4JPackager11.zip
    13 KB · Views: 2,689
Last edited:

[BANano] Working with BANanoSQL

BANanoSQL makes it possible to use 'normal' SQL queries on the IndexedDB database located in the browser.

There are three ways on how to work with BANanoSQL:

1. Event Driven
This is...
 
Last edited:

Raspberry Pi with Java 11

Running UI apps on Raspberry Pi with Java 11 is relatively simple.

1. Download Liberica JDK.
Download the lite version...
 
Last edited:

💡 Printing on A4 and Letter sized paper

Hello all,
As the title say, this is a quick tutorial on how to print on A4 or Letter sized paper using the follow information provided by Steve Laming (better known as @stevel05)...
 

Attachments

  • Pint on A4.pdf
    51.2 KB · Views: 785
  • Print on Letter.pdf
    49.9 KB · Views: 537
  • PrintA4Letter.zip
    69 KB · Views: 873
Last edited:

How create a Chat using B4J and Server Composer [ Socket ]

hello everyone !

It is with great honor that I present to you my tool for creating websocket & socket servers, it was developed using C ++ [libwebsocket, enet, winsock, lua_wrapper, scintilla and...
 

Beginning Firebase Database in JavaScript: CRUD-ing around

Hi there...

Anyway, this should not be long. Many moons I was requested to work on a firebase wrap for ABM. Im not there yet, but this should be a start. I'm still getting a hang of it and more...
 

Attachments

  • firebase.txt
    9.1 KB · Views: 395
Last edited:

BomberOco game source (incomplete)

Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple Bomberman example game logic.

this example load a map based on txt file

jailson.jpg
...
 
Last edited:

[server] Run a Server on Azure as an App Service

Since Azure supports Jetty, a B4J server app can also run on azure.

1. Search jetty in the marketplace and create a web app service...
 

Attachments

  • search.png
    search.png
    41.4 KB · Views: 1,388
Last edited:

[abmaterial] How to remove the appname to access the web address?

hello,

abmaterial provides this: ipaddress:port/appname/

Is there a way to have this: ipaddress/

If you run your abmaterial application and you enter the ip address of the server, you need to...
 

[B4x] RSA example (asyncstreams)

- Changed to B4x as the subs can be used in B4A, too
- "Send File" added (new Button to send a file to the other client)



This tutorial is based on Erel's Asyncstreams example...
 

Attachments

  • RSAExample.zip
    5.9 KB · Views: 451
Last edited:

[ABMaterial] Using Cloudinary as CDN for your assets (v4.35)

Using a CDN (Content Delivery Network) for your WebApp can be very beneficial:

The Benefits of using a CDN:
  • Different domains. Browsers limit the number of concurrent...
 
Last edited:

Updated MySQL & PHP example

Before you start: You need some experience with php, Apache Servers, OkHttpUtils, Lists, Maps and JSON structures.

This is an updated example of how to

- communicate with a apache server via...
 

Attachments

  • PHP.zip
    6 KB · Views: 1,255

SQLite Triggers: Creating Audit Trails For Dummies

Ola

What is an audit trail? As per Wikipedia...

An audit trail (also called audit log) is a security-relevant chronological record, set of records, and/or destination and...
 

Attachments

  • DBTriggers.bas
    9 KB · Views: 415
Last edited:

Hint about ("remote") DB queries

After (unfortunately) having write many functions (in a code module in my b4j server project) which access a MySql, I remembered a fundamental rule: use Try-Catch when accessing external...
 
Last edited:

Get EXIF GPS information and show images in google maps

My Aim: Extract the gps information from all images in a directory and generate a html file to view in a browser showing all images in google maps at the coordinates they were taken.


As a...
 

Attachments

  • GM_Utils.zip
    90.4 KB · Views: 494
  • B4J.zip
    4.2 KB · Views: 490
Top