Odd ONLOAD behavior
Posted: Wed Mar 23, 2022 12:15 pm
I have a rpgle program that displays a screen while processing is being done in the background, and then will optionally display several screens afterwards that have buttons for the user to "press" to continue. All of these screens are set as "Show as window".
Code flow is
exfmt screen0 - main program display
exfmt screen1 (just display, no buttons or inputs - with ONLOAD set to pui.click() )
call program (does not use screen at all)
exfmt screen2 - windowed - informational display with button to continue
exfmt screen3 - windowed - informational display with button to continue
screen2 and 3 are displaying but it is acting like enter is being pressed and program goes back to displaying screen0.
The only way I have found to stop it is to A) remove the onload from screen1 OR B) change the screen2/3 to NOT "Show as Window" which then clears the screen and looks bad, but the screens do not get auto-entered.
This was working fine and then just stopped and I cannot figure out why. This is a work in progress, so the code is being developed, but I can't see why this would start happening all of a sudden.
I have tried clearing firefox cache and also tried in Chrome.
I also tried creating a button on screen1 with id of "clickme" that is hidden. And I changed the onload for that screen to pui.click("clickme"). Still, screen2 and 3 are "auto advancing".
I can require the user to press a button on screen1, but I am trying to avoid doing that.
Any thoughts/help would be appreciated, thanks!
Kev
Code flow is
exfmt screen0 - main program display
exfmt screen1 (just display, no buttons or inputs - with ONLOAD set to pui.click() )
call program (does not use screen at all)
exfmt screen2 - windowed - informational display with button to continue
exfmt screen3 - windowed - informational display with button to continue
screen2 and 3 are displaying but it is acting like enter is being pressed and program goes back to displaying screen0.
The only way I have found to stop it is to A) remove the onload from screen1 OR B) change the screen2/3 to NOT "Show as Window" which then clears the screen and looks bad, but the screens do not get auto-entered.
This was working fine and then just stopped and I cannot figure out why. This is a work in progress, so the code is being developed, but I can't see why this would start happening all of a sudden.
I have tried clearing firefox cache and also tried in Chrome.
I also tried creating a button on screen1 with id of "clickme" that is hidden. And I changed the onload for that screen to pui.click("clickme"). Still, screen2 and 3 are "auto advancing".
I can require the user to press a button on screen1, but I am trying to avoid doing that.
Any thoughts/help would be appreciated, thanks!
Kev