Hi all,
I have developed a web app that takes requests. The initial page lists existing requests. Upon clicking the NEW button, I have a javascript that opens a new window with a blank form. When the user clicks SAVE on the form, the db is updated and another javascript closes the window, returning to the main page.
However since I am only opening a new window and then closing it, the main page is not refreshed, and the new request is not seen by the user who created it. I implemented a little refresh button that they can click to refresh the db pull, but I am hoping there is another way.
Any recommendations? I am getting better with creating/programming these web-apps, but am not all the way there yet. Is there an method that can fire when a page regains focus or something? Can the form call a procedure on the original page?
I have developed a web app that takes requests. The initial page lists existing requests. Upon clicking the NEW button, I have a javascript that opens a new window with a blank form. When the user clicks SAVE on the form, the db is updated and another javascript closes the window, returning to the main page.
However since I am only opening a new window and then closing it, the main page is not refreshed, and the new request is not seen by the user who created it. I implemented a little refresh button that they can click to refresh the db pull, but I am hoping there is another way.
Any recommendations? I am getting better with creating/programming these web-apps, but am not all the way there yet. Is there an method that can fire when a page regains focus or something? Can the form call a procedure on the original page?