rollMyFile.js Demo

Embedded application

This page shows how rollMyFile.js API can be used to open documents in applications that is running "embedded" into a page of another web application.

var key = "64OkPEEXRIuIC6yb8ilZYB4VRsgciYyEHF25FARR";

var rollMyFile = new RollMyFile(key);

$(function(){
    rollMyFile.initEmbeddedIframe($('#app-frame')[0]);

    $('#open-doc').click(function(){
        rollMyFile.openFileByUrl('https://calibre-ebook.com/downloads/demos/demo.docx');
    });
    $('#open-xls').click(function(){
        rollMyFile.openFileByUrl('https://ol.baker.edu/webapps/dur-browserCheck-bb_bb60/samples/sample.xlsx');
    });
});