Redirect to other page with location href in function add phpgrid

QuestionsRedirect to other page with location href in function add phpgrid
Daniel G asked 3 years ago

Dear Sir ,

How direct to other page with location href in function add ??

This sintax not running :

$e["on_update"] = array("update_data",null, false);

$g->set_events($e);

function update_data($data)
{
echo "<script language="javascript">window.open("erp_menu.php","_parent");</script>";

}

Thanks

1 Answers
Abu Ghufran answered 3 years ago

Along with other options, You can set:

$opt["onAfterSave"] = "window.open('erp_menu.php','_parent');";

$g->set_options($opt);

Your Answer

13 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!