do_onselect event

Questionsdo_onselect event
Oscar asked 11 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 11 years ago

Emailed you few samples.

Cliff answered 10 years ago

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

Many thanks,

Cliff

Abu Ghufran answered 10 years ago

Emailed you the samples.

Lubos Vitu answered 9 years ago

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

Abu Ghufran answered 9 years ago

Thanks Lubos.

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

Your Answer

14 + 4 =

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?