Announcement

Collapse
No announcement yet.

Close modal window and redir the parent window to another page

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Close modal window and redir the parent window to another page

    Hi:
    I'm using a Form and open a modal control window through sc_redir(xxx, modal), and after operation, I want to:

    1. Close the Modal control (I know the sc_exit() and it works);
    2. The Form app direct to another page, like a grid;

    I use sc_redir(grid, _parent) in the Control and it cannot work(it open the grid in the modal form).

    Could anyone help me?

  • #2
    Place a Javascript button on your control with the following code.

    parent.window.location.href = '../other_page_folder/other_page.php';
    parent.window.tb_remove();


    jsb

    Comment

    Working...
    X