:: Forum >>

Newbie - Double Click Event

Hi,

I am writting an HTML/PHP/MYSQL web based application and I have stumbled accross ActiveWidgets when trying to work out code to display the results of a search query.

Diplaying the query in a AW grid is exaclty what I am looking for, It looks great! However once I have displayed the grid, I would like to be able to double click onto a cell, and somehow using something like the php variable $_POST, post the cell value back to another php page. (returning back to my web application)

I have attempted something like this,

// Double click event
var RecordID = obj.getCellValue(column, row);
obj.onCellDoubleClicked = function(event, column, row){
window.open('http://localhost/pyramid/customer.php?id='+RecordID,'_POST');
}

Please Help!
Jez
Sunday, February 15, 2009
After much pain I have worked the problem out with the following code,

obj.onRowDoubleClicked = function(event, row){
var value = this.getCellText(0, row);
window.location.href('http://localhost/pyramid/
customer.php?'+value);
}

When you double click on the row, it posts the first column of that row (that is the account_id) back to customer.php, using $_GET ($_POST which dose not work). customer.php then performs the Mysql query on the account_id from $_GET returning the customers credentials ready for editing, deleting, etc


Jez
Sunday, February 15, 2009
The POST method requires a form. Check the cell link documentation for an alternate method (see the other post I just replied to for more details).
Anthony
Sunday, February 15, 2009

This topic is archived.


Back to support forum

Forum search