Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Javascript pop-up for individual cell

phpMyEdit General     Javascript pop-up for individual cell
Post new topic   Reply to topic    
 
Beasley22     Joined: 30 Jun 2011   Posts: 2  
Post 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)
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy