Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »


On Load:

When loading your answerSpace, either via an appshell or via the browser as a web app, certain processes take place:


Firstly, the BIC is downloaded onto the device - this will set up the environment needed to run and display your answerSpace.

If running within an Appshell, Cordova and any plugins are also loaded.

The BIC will then download the answerSpace configuration, client side code interactions, and the forms definitions.


Note: Forms definitions are a JSON structure that describes your form configuration to the BIC so that the BIC can render your forms locally on the device, in both online and offline modes. These are the same definitions that can be translated into client side forms using our Forms CLI.


CSS and External Javascript libraries that you have included in the answerSpace configuration settings are also loaded.

Finally your answerSpace is displayed to the user.

Throughout this process, a number of Javascript events are fired, allowing you to hook into functionality at certain times.

BIC2 events:

https://github.com/blinkmobile/snippets/blob/master/javascript/answerSpace-events.js

BIC3 events (jQueryMobile):

http://api.jquerymobile.com/category/events/


BIC3 also implemented RequireJS, meaning you can also time any Javascript code you’re using to only run after certain resources are available, such as jQuery or Forms objects.

During this process, if running an an appshell, the user will see a splash screen that you can set during the appshell building process. As a web app, the user will see a loading notice or loading dots, depending if you’re using BIC2 or BIC3.

After the loading is complete, the user will see your “home” page, and can then start using your answerSpace.

Next:

  • No labels