Display next page after Submit

QuestionsDisplay next page after Submit
Ronny asked 5 years ago

Dear Abu,
I need your help. Any idea to display other page after click Submit button? I want to display detail grid after submit new data on master grid.

I had tried the codes below but not run.

$grid["add_options"]["afterSubmit"] = 'function(formid){jQuery("#url").after(javascript:window.open("http://www.google.com/?q={name}","newwind","height=500,width=800"); void(0);')}';

2 Answers
Ronny answered 5 years ago

The part of my script is like this:

$grid["add_options"]["afterSubmit"] = 'function(formid){jQuery("#url").after(javascript:window.open("localhost/employee_detil.php?q={client_id}","newwind","height=500,width=800"); void(0);')}';

function add_client($data)
{
mysql_query("INSERT INTO clients VALUES (null,'{$data["params"]["name"]}','{$data["params"]["gender"]}','{$data["params"]["company"]}')");

$data["params"]["client_id"] = $new_id; //Get Last ID
}

Any body help me how to capture $new_id and put the value at parameter on URL that called by pop-up?

Abu Ghufran answered 4 years ago

I think this is not supported. It will need some core level changes.

Your Answer

0 + 15 =

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?