Page 1 of 1

How to add or render html page or any window after a click in oxygen

Posted: Thu Aug 18, 2022 1:44 pm
by SmitaPatil
Hi Team,

I want to load some custom html code [new html page or window on same page] on click of button but I am unable to do it. Can you please suggest a way to use our custom html code and integrate it with oxygen web author?

Thank you,
Smita

Re: How to add or render html page or any window after a click in oxygen

Posted: Thu Aug 18, 2022 2:24 pm
by Gabriel Titerlea
Hello,

What are you trying o achieve? Depending on your answer we may recommend a different approach.
You can find instructions for how to load custom javascript code in Web Author here [1].

Best,
Gabriel

[1] https://www.oxygenxml.com/doc/versions/ ... lugin.html

Re: How to add or render html page or any window after a click in oxygen

Posted: Thu Aug 18, 2022 3:07 pm
by SmitaPatil
Hi Gabriel,
I want to display one custom popup after clicking on button. so I have doubt that how can I add that html file for popup is there any way to configure it.
instead of creating html element as shown below, I want to it to popup window in separate html file and load it in oxygen.

Thanks,
Smita

Re: How to add or render html page or any window after a click in oxygen

Posted: Thu Aug 18, 2022 4:01 pm
by Gabriel Titerlea
Hello,
I want to display one custom popup after clicking on button
You can open a dialog using the workspace.createDialog [1] API.
instead of creating html element as shown below
To avoid all that styling code, you can populate the dialog with DOM elements that can be styled using CSS [2].

Best,
Gabriel

[1] https://www.oxygenxml.com/maven/com/oxy ... og__anchor
[2] https://github.com/oxygenxml/web-author ... i-with-css