Embedding NGRAIN Viewer with iframe

Question:

Why do I get error when I embedded NGRAIN Viewer inside HTML using iframe?

Answer:

In order to do cross-frame scripting and embedding NGRAIN Viewer correctly, you have to have consistent mark of the web (MOTB) info between the frames.

For example, you have a Viewer_Embedded.html has a MOTB as <!-- saved from url=(0025)http://www.sample.com --> Then, the Frame.html needs to have the same MOTB in order to pass the parameters correctly to the embedded Viewer.

This way, you will be able to create the offline version HTMLs that works correctly with NGRAIN Viewer.

Also if you deploy it to a server in the future, the server will mark them correctly and you will not have this problem.

Did you find this article helpful?

Interact with our community

Browse forum