Page 1 of 1
Freeze
Posted: Thu Oct 29, 2026 8:04 pm
by luke
Als ik vanuit een dialoog window een print do, ga ik normaal naar het printsysteem.
Maar daarna freezed mmijn scherm en moet ik opnieuw laden.
hoe te voorkomen?
Re: Freeze
Posted: Thu Oct 29, 2026 8:44 pm
by Pablo
Wat bedoel je precies met 'een print do'?
Welke optie(s) in de software gebruik je en in welke volgorde?
Zou je iets specieker kunnen zijn?
Re: Freeze
Posted: Thu Oct 29, 2026 11:40 pm
by luke
typo, een print "doe" moet dat zijn.
ik maak een button in een dialoogvenster, met onclick - print element - target.
de windows printservice vangt het op en het print ook. tot zover is alles goed.
Maar na het printen kan ik alleen scrollen, geen toetsen gebruiken. en moet ik een reload doen.
testserver
https://schaak.limburg.ws/Hasselt.html, het dialoogvenster hasselt 5 heeft een print button.
Re: Freeze
Posted: Fri Oct 30, 2026 7:23 am
by Pablo
Printen is systeem functionaliteit, dit wordt door de browser gedaan. Ik denk niet dat WYSIWYG Web Builder hier direct invloed op heeft.
Re: Freeze
Posted: Fri Oct 30, 2026 7:58 am
by AliGW
I tested this and cannot reproduce the problem. I am using the Firefox browser. Even after closing the print dialog, the website still scrolls with scrollbars and arrow keys.
Re: Freeze
Posted: Fri Oct 30, 2026 10:33 am
by BaconFries
Your issue which is not related to the software itself but is a "focus" issue that gets trapped inside the dialog but still allows scrolling but can block keyboard events.
You can try to fix this by using some javascript below by inserting in Page HTML Between the <head></head> tags* Note you will need to replace #yourButton with the button ID you have used in the dialog.
Code: Select all
<script>
window.addEventListener('afterprint', () => {
const btn = document.querySelector('#yourButton');
if (btn) btn.focus();
});
</script>
Re: Freeze
Posted: Fri Oct 30, 2026 6:05 pm
by luke
Close,
I added a button "printme" on the dialog form 'Hasselt 5'.
It works, but only for that button - not for the form.
Would it be possible to get the ID from te buttons inside a dialog form? I did not find that one.
maybe that way the form get the attention.
https://schaak.limburg.ws/Hasselt.html
BaconFries wrote: Fri Oct 30, 2026 10:33 am
Your issue which is not related to the software itself but is a "focus" issue that gets trapped inside the dialog but still allows scrolling but can block keyboard events.
You can try to fix this by using some javascript below by inserting in Page HTML Between the <head></head> tags* Note you will need to replace #yourButton with the button ID you have used in the dialog.
Code: Select all
<script>
window.addEventListener('afterprint', () => {
const btn = document.querySelector('#yourButton');
if (btn) btn.focus();
});
</script>