do_onselect event

Questionsdo_onselect event
Oscar asked 6 years ago

Hi,

I need to open a new page after the "do_onselect" event sending an id from the PHPGrid page to another one to work with the id (OID) value… how can achieve this?
I've been trying:
function do_onselect(id)
{
var rd = jQuery('#list1').jqGrid('getCell', id, 'oid');
jQuery("#span_extra").html(rd);
window.location = "test.php?coid=$oid";
// or
window.location = "test.php?coid=" + oid;
// or
window.location = "test.php?coid=" . oid;
}

But nothing happens…

Where should I add something like method=post so in test.php will read that id value?

Thanks in advance

Best regards
Oscar P

5 Answers
Abu Ghufran answered 6 years ago

Emailed you few samples.

Cliff answered 5 years ago

I would also appreciate seeing some examples of how to do this please.

Many thanks,

Cliff

Abu Ghufran answered 5 years ago

Emailed you the samples.

Lubos Vitu answered 4 years ago

window.open("test.php?coid="+rd);

Abu Ghufran answered 4 years ago

Thanks Lubos.

Here is discussed code.
http://pastebin.com/AbMqA34A

Your Answer

13 + 5 =

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!