Multiselect Rows Send by POST

QuestionsMultiselect Rows Send by POST
Alfonso Cabrera asked 8 years ago

Hi Abu!

How can I send by POST the ID's of the selected rows?
I found this function in another question.

<script>
// on dbl click event on list
var opts = {
'ondblClickRow': function (id) {
window.open("edit.php?id="+id)
}
};
</script>

Thank you.

3 Answers
Alfonso Cabrera answered 8 years ago

Can I store the data in an array? And then send it to the other page?

Abu Ghufran answered 8 years ago

Hello,

For query1:
// get all selected ids
var selectedRows = jQuery('#list1').jqGrid('getGridParam','selarrrow');
// pass to new page
window.open("sendemail.php?id="+selectedRows);

For query2:
You can pass via GET querystring.

Abu Ghufran answered 8 years ago

Refer demos/appearance/toolbar-button.php for demo.

Your Answer

13 + 3 =

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?