Copy link to clipboard
Copied
My index.cfm page opens up a login form inside a <cfwindow>. When the user submits the form, it redirects to a page inside the window for data validation. If After the <cfloginuser> code, I have tried using <cflocationurl> to reload the page, but it reloads the page inside the window, not the entire page (giving me a window containing index.cfm inside my index.cfm page!). Everything I have found by searching the internet has 50 lines of javascript (which I dont know) as a workaround. There has to be an easier way. Everything else is working (if I reload the page manually, the user is logged in, entering invalid data does not log the user in etc.)
Thanks!
This JavaScript will reload the current page:
document.location.reload()
From within your cfwindow it should work for the entire page.
Copy link to clipboard
Copied
This JavaScript will reload the current page:
document.location.reload()
From within your cfwindow it should work for the entire page.
Copy link to clipboard
Copied
That worked. I tried using window.location.reload() before, which acted differently on different browsers. document.location.reload() works on all.
Thanks