Moderator: Neosoft Support
BeginJS
window.close();
EndJS
"Scripts may close only the windows that were opened by it. "
<body onload=NoBack() ... >
<script type "text/javascript">
history.go(1);
</script>
Last night, I attached this code to a PushButton ... and when I clicked on the Button (when App was running in Firefox on my PC), nothing happened.
WebApps should not be closed programaticaly, as the browser control must be always on users hands.
If you need to restrict access for security reasons, you can control it through a password field.
On the other hand, I added a "Login" and "Logout" services, at the first statements of the app...
After logout, any unauthorized person could "GoBack" the app, and could use the program.
in researching this, i noticed that there was no app-stop code section ... only an app-start section ... will there be support for this event in the future ?
On the other hand, I added a "Login" and "Logout" services, at the first statements of the app...
Interesting. Can you share the code you used to do this?
Yes, there will be a shutdown event in the future.
I think you're right about that, but why can't mobile apps be closed? There are lots of times where I open an app, use it for one thing and then want to close it. Instead I have to take the extra step of opening the list of open apps and manually shutting them down. Leaving apps running uses resources and drains the battery.
It worked even better when page-enter event was onBeforeLoad on previous beta, perhaps would be interesting to keep both events.
Return to General NeoAppBuilder Discussion
Users browsing this forum: No registered users and 0 guests