Home

Sojourn Solutions JS Libs

A pack of useful JS libs for everything.

Instalation

Just attach the script to website.

Examples

1. EloquaLookupDataScrapper - Scrapper to easily get data from Eloqua's lookups

    var scrapper = new SojournSolutionsJSLibs.EloquaLookupDataScrapper(elqSiteId); // ElqSiteId - Id to get from Eloqua (it can be obtain from /Forms entry)
    var eloquaLookupRequestPromise = scrapper.scrapCDO(lookupId, matchFieldColumnName, matchFieldValue); // It will return promise
    eloquaLookupRequestPromise.then(data => ...) // Do smth with data from eloqua lookup

For DEVS

Installation

npm install

Start Dev Server

npm run dev

Build Prod Version

npm run build

Features:

When you run npm run build we use the extract-text-webpack-plugin to move the css to a separate file and included in the head of your index.html, so that the styles are applied before any javascript gets loaded. We disabled this function for the dev version, because the loader doesn't support hot module replacement.