Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Refresh entire page from <cfwindow>

New Here ,
Oct 23, 2010 Oct 23, 2010

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!

1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Oct 23, 2010 Oct 23, 2010

This JavaScript will reload the current page:

document.location.reload()

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

Translate
Engaged ,
Oct 23, 2010 Oct 23, 2010

This JavaScript will reload the current page:

document.location.reload()

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 23, 2010 Oct 23, 2010
LATEST

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

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources