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 4 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 4 years ago

Along with other options, You can set:

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

$g->set_options($opt);

Your Answer

8 + 19 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?