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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
SmitaPatil
Posts: 93
Joined: Mon Aug 08, 2022 2:32 pm

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

Post 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
Gabriel Titerlea
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

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

Post 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
SmitaPatil
Posts: 93
Joined: Mon Aug 08, 2022 2:32 pm

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

Post 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
You do not have the required permissions to view the files attached to this post.
Gabriel Titerlea
Site Admin
Posts: 95
Joined: Thu Jun 09, 2016 2:01 pm

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

Post 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
Post Reply