Iframe Application

An application that loads its sources via iframe.

Create Package

$ node osjs generate:package --name=default/MyPackageName --type=iframe

Development

Just follow your normal workflow.

Create a folder named data/ and make a file called index.html. This is what is loaded by default in main.js.


Bi-directional communication

You can communicate between OS.js and your IFrame application using the browser APIs and some helper methods.


Building and installation

# Adds package to global manifest. You have to run this initially and when you change your metadata file
$ node osjs build:manifest

# Build package
$ node osjs build:package --name=default/MyName

Tips

If you want to automatically rebuild your changes, run:

$ node osjs watch