Skip to main content
December 6, 2011
Answered

Popup login needs to open full screen page.

  • December 6, 2011
  • 2 replies
  • 2072 views

I am utilizing a popup login window that upon proper authentication will open to a separate page via a cflocation tag. Problem is it is opening the page within the popup, not in  a new fullscreen window as I would like. I tried applying a target attribute to the cflocation url but that didn't work. This is the first time I have used popups and this has me stumped. How do I get my new page to open in full screen?

    This topic has been closed for replies.
    Correct answer 12Robots

    I suppose if you have to do it with <cflocation /> then you would need to cflocate to a page that has the proper JavaScript.

    So you could do somehting like

    <cflocation url="parentRedirect.cfm" />

    Then in the parentRedirect.cfm you would have something like

    <script>

    opener.location.href = '/index.cfm';
    close
    ();

    </script>

    This code is untested, I am going from memory. It is also assuming you are using standard JavaScript windows (i.e. window.open())

    Jason

    2 replies

    12Robots
    Participating Frequently
    December 6, 2011

    Wouldn't it be better and easier to redirect the parent window and close the popup window?

    Jason

    December 6, 2011

    Jason, thanks for the reply. How would I do that within the confines of a cflocation tag?

    12Robots
    12RobotsCorrect answer
    Participating Frequently
    December 6, 2011

    I suppose if you have to do it with <cflocation /> then you would need to cflocate to a page that has the proper JavaScript.

    So you could do somehting like

    <cflocation url="parentRedirect.cfm" />

    Then in the parentRedirect.cfm you would have something like

    <script>

    opener.location.href = '/index.cfm';
    close
    ();

    </script>

    This code is untested, I am going from memory. It is also assuming you are using standard JavaScript windows (i.e. window.open())

    Jason

    Owainnorth
    Inspiring
    December 6, 2011

    In order to create a new window and dictate its size, you'll need to use Javascript, as it's the only client-side language you have available.

    Is this for a public website or private intranet?