Skip to main content
Known Participant
June 15, 2009
Question

<cfwindow> redirect parent

  • June 15, 2009
  • 2 replies
  • 1057 views

Hi,

I would like an alert to display when a user has been deleted with cf window. When the window is close I would like the parent window to redirect.

How can i achive this?

Thanks.

    This topic has been closed for replies.

    2 replies

    ajithman
    Inspiring
    June 18, 2009

    Try this:-

    ColdFusion.Window.onHide("YourColdFusionWindowName",JsFunction);

    ColdFusion.Window.onHide is invoked when u close the cfwindow and then eventually the funtion JsFunction is called. So writing location.href=true in your JsFunction can probably help you to refresh the parent page while u close the cfwindow.

    HTH

    Inspiring
    June 15, 2009

    You could place an OK button in the cfwindow which links to the page you want it to go to.

    If you do this I would also set the cfwindow closable attribute to false that way people can't close the window and return to the parent page.