Control URLs
Posted: Sun Jun 28, 2015 4:19 pm
Are there any built in commands to control or see the URL events?
I have written a small 2 window application. I named the compiled file index.html so when the user goes to the application base URL the application launches by default.
The first window is a login window and if the user logs in succesfully then a main window appears. The issue I have is that if the user refreshes the page it goes back to the beginning of the application (login window), I would like to stay in the current window.
See pseudo code I would like:
URL refresh event
--See which window is the active one
-- Show the current active window or ignore refresh (I don't want it to go to beginning of app)
Thanks!
I have written a small 2 window application. I named the compiled file index.html so when the user goes to the application base URL the application launches by default.
The first window is a login window and if the user logs in succesfully then a main window appears. The issue I have is that if the user refreshes the page it goes back to the beginning of the application (login window), I would like to stay in the current window.
See pseudo code I would like:
URL refresh event
--See which window is the active one
-- Show the current active window or ignore refresh (I don't want it to go to beginning of app)
Thanks!