Hi,
I am wondering if it is possible to show in SB generated HTML code in a new browser tab. This would make it easy to show tabled results which may be longer than browser vertical size is and print it by Browser.
Useful Ideas are welcome.
How to show generated HTML code in new browser tab
-
- Posts: 37
- Joined: Thu Apr 10, 2014 3:35 pm
How to show generated HTML code in new browser tab
as soon you do it right, it works !
Re: How to show generated HTML code in new browser tab
Code: Select all
Procedure OpenNewWindow(Name.s, Title.s, HTML.s)
! var win = window.open("", v_name);
! win.document.title = v_title;
! win.document.body.innerHTML = v_html;
EndProcedure
Procedure ButtonEvent()
OpenNewWindow("newWindow", "I'm a new window", "<h1>Peek-a-boo!</h1>")
EndProcedure
OpenWindow(0, 0, 0, 0, 0, "", #PB_Window_Background)
ButtonGadget(0, 10, 10, 200, 30, "Open new window")
BindGadgetEvent(0, @ButtonEvent())
-
- Posts: 37
- Joined: Thu Apr 10, 2014 3:35 pm
Re: How to show generated HTML code in new browser tab
Thank you Peter,
Where can I find corresponding documentation ?
Where can I find corresponding documentation ?
as soon you do it right, it works !
Re: How to show generated HTML code in new browser tab
for example here: https://developer.mozilla.org/en-US/doc ... dow/windowmenschmarkus wrote:Where can I find corresponding documentation ?
-
- Posts: 37
- Joined: Thu Apr 10, 2014 3:35 pm
Re: How to show generated HTML code in new browser tab
Thank you Peter.
as soon you do it right, it works !
Re: How to show generated HTML code in new browser tab
Thanks Peter, that was also helpful for me.
SB 2.32 x86, Browser: Iron Portable V. 88.0.4500.0 (Chromium based), User age in 2023: 55y
"Happiness is a pet." | "Never run a changing system!"
"Happiness is a pet." | "Never run a changing system!"