Skip to main content
Participant
October 23, 2010
Answered

Refresh entire page from <cfwindow>

  • October 23, 2010
  • 1 reply
  • 1318 views

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 topic has been closed for replies.
    Correct answer cfjedimaster

    This JavaScript will reload the current page:

    document.location.reload()

    From within your cfwindow it should work for the entire page.

    1 reply

    cfjedimaster
    cfjedimasterCorrect answer
    Inspiring
    October 23, 2010

    This JavaScript will reload the current page:

    document.location.reload()

    From within your cfwindow it should work for the entire page.

    Participant
    October 23, 2010

    That worked. I tried using window.location.reload() before, which acted differently on different browsers. document.location.reload() works on all.

    Thanks