Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
Get Free Trial

Is any event available or any method to detect if any pop-up is open on flexmonster report?

Answered
Jyoti asked on January 10, 2020

Hi Support Team,
Is there any event or method available to detect if any type of pop-up is open on flexmonster report? Can you please give the details if any such event or method?
Thanks & Regards

3 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster January 13, 2020

Hi Jyoti,
 
Thank you for posting your question.
 
As of right now, there is no universal built-in method or event that would detect any pop-up windows directly.
 
However, since Flexmonster is a web component, it is always possible to look for specific elements directly in the HTML document of the page. We would suggest using the querySelector() method of the Document interface to check if elements with certain IDs are present on the page.
 
This will let you detect any possible pop-ups, as well as other windows in the UI.
 
We were also wondering if you could tell us a little bit more about your use case and what you are trying to achieve here. Understanding this would greatly help us provide you with the most relevant information in the future.
 
Thank you in advance and looking forward to hearing from you.
 
Best regards,
Mykhailo

Public
Jyoti January 15, 2020

We want to prevent other area on page being clickable when any of the popup in flexmonster tool is open. Hence we need to know if any such event is available.

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 15, 2020

Hello,
 
Thank you for providing more details.
 
Our team would like to kindly suggest using the following approach:
Track if the elements with specified ID exist in the Flexmonster’s container and trigger the desired function. It is possible using the MutationObserver object that provides a possibility to observe a DOM element and fires a callback in case of changes.
 
Please check out an example we prepared for you, demonstrating the implementation of such an approach.
 
We hope it works for your case.
 
Best regards,
Illia

Please login or Register to Submit Answer