Beasley22
Joined: 30 Jun 2011
Posts: 2
Posted: 2011-07-12 12:26
Back to top
Reply with quote
|
i need to allow a field to be edited via clicking on it.
e.g. 'notes' field. i need it to be able to be clicked then a javascript popup appear with the results in a textarea which allows me to edit the database contents and then resumbit / close the popup.
Any ideas? cheers
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2011-07-12 15:18
Back to top
Reply with quote
|
Consider making a copy of the original script, remove unwanted fields, save as CopyOfOriginalScript.php, and add a virtual (dummy) field with the edit link.
| Code: |
$opts['fdd']['dummy1'] = array (
'input' => 'R',
'name' => 'Virtual field',
'sql' => 'CONCAT("<a href=\"http://foo.com/CopyOfOriginalScript.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=2&PME_sys_operation=PME_op_Change&PME_sys_rec=", record_id, "\" target=\"_blank\">Edit in new window</a>")',
'options' => 'FL',
'escape' => false,
'sort' => true
); |
|
|
Post new topic
Reply to topic
|
|
|