i am facing a problem in flexigrid. i am trying to add a new button export in the grid. when user click on the button. i am opening a popup which contain the code to generate excel. my problem starts here. i want to post the same variable (sortorder, sortname....) which are posting on the post2.php. but i am failed to get the values of sortorder, sortname on the export.php
following is my code. if (com == 'Export') {
window.open("download.aspx?", 'Export', 'width=100,height=100,');
}
i want to pass the sortorder and sortname through querystring on the download.aspx page.
Please help me..[/quote]
I don't know if it is a best solution but it works:
Code:
if (com == 'Export') {
var rp = $('select[name=rp]', grid).val();
var page = $('.pcontrol > input', grid).val();
var sortname = $('div.hDiv', grid).find('th.sorted').eq(0).attr('abbr');
//sortorder with 's' prefix (sasc / sdesc)
var sortorder = $('div.hDiv', grid).find('th.sorted div').eq(0).attr('class');