Flexmonster MCP Server is here! Connect your ✨AI assistant to our documentation. Get started
+

FlexMoster iFrame with ColorBox.js

Answered
Luca Storto asked on April 17, 2026

Good morning, is there a way to unblock iframe mode in Flexmonster? It is currently preventing the component from running.

At the moment, there are some ASPX pages that, via colorbox.js, call a web app written in Angular 21 where Flexmonster is used.

However, Flexmonster is blocking the execution.

 

Attached is the message that appears.

Attachments:
preview.jpg

3 answers

Public
Yuliia Kononenko ⋅ Flexmonster ⋅ April 17, 2026

Hi Luca,

Thanks for your email.

I’ve just sent you a response via email.

Best regards,
Yuliia

Public
Luca Storto ⋅ April 17, 2026

On the ASPX side, a JavaScript library called colorbox.js is used, which opens another web app via URL where Flexmonster is managed.

It is more of an aesthetic choice than a functional requirement.

Since there are currently two separate web apps and the goal is to make them appear as a single one, I used this solution.

I’m also attaching the portion of JavaScript code used.

 

At the moment, I have used the “window.open” approach, which works but is not ideal, also because most browsers tend to block pop-ups.

 //$(document).on('click', '#btnOpenXQube', function () {
 //    $.colorbox({
 //        href: 'http://localhost/XlFlexMonsters',
// iframe: true, // width: '90%', // height: '85%', // onComplete: function () { // var iframe = document.querySelector('#colorbox #cboxLoadedContent iframe'); // console.log('iframe trovato:', iframe); // if (!iframe || !window.__tabellaGenerataJson) return; // var intervallo = null; // var tentativi = 0; // function ackHandler(e) { // if (e.data?.type === 'TabellaGenerataJson_ACK') { // clearInterval(intervallo); // console.log('ACK ricevuto, stop tentativi'); // window.removeEventListener('message', ackHandler); // } // } // window.addEventListener('message', ackHandler); // intervallo = setInterval(function () { // tentativi++; // iframe.contentWindow.postMessage( // { type: 'TabellaGenerataJson', payload: window.__tabellaGenerataJson }, // '*' // ); // console.log('postMessage inviato, tentativo', tentativi); // if (tentativi >= 20) { // clearInterval(intervallo); // window.removeEventListener('message', ackHandler); // console.warn('postMessage: numero massimo tentativi raggiunto'); // } // }, 500); // }, // }); //});

Public
Yuliia Kononenko ⋅ Flexmonster ⋅ April 20, 2026

Hi Luca,

Thanks for the details. Please check my response via email.

Best regards,

Yuliia

Please sign in or register to submit your answer