Enhancing an application with AJAX

About this Page

The With Vue page demonstrates using Vue.js and some dynamic metadata to enhance the client-side of an existing application.

This page uses the same dynamic metadata & integrates it with a host application using plain AJAX & bootstrap The host page (this page) mocked here is vanilla HTML/javascript/jQuery/Bootstrap.

To the host page the following items are added:
a) Divs (plain divs, cards, panels, tabs, whatever) identified by specific Ids;
b) A link to the Larbins.js file;
c) The page imports the Larbins.js page (as a module) to allow communication with Larbins.js.

Larbins.js is responsible for reading the metadata & painting additional controls & containers (cards, tabs etc) on the page. This metadata can be hard-wired in the code or read from a database. The host page has access to the Larbins data structures allowing validate/read/write/insert operations.

So where is all the Vue.js stuff now? A (non-development) administration infrastructure can be provided to allow users to do the following:
a) Manage the metadata to add database columns & assign columns to positions on the host page.
b) Use the Data Administration function to allow administrative users to access the raw data.

See here for a demo of some of this functionality.

Notes
As at 22/3/2021 for the purposes of this demo data & metadata are mocked. No actual database is accessed.


1) Host Application

Just some simple javascript / bootstrap to simulate the host application.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Ajax
Fetch


2) Host Application + Injected Javascript

The blue panels & Column A & Column B belong to the Host application. Everything else (including the white & off-white panels) is run-time Ajax/javascript.