Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Monday, October 19, 2026
About Us
O nás
Magazine
Magazín
Open Source
Otvorený softvér
CVS
CVS
Services
Služby
Index  »  Projects  »  phpMyEdit  »  Forum  »  Best way to display textarea content

phpMyEdit General     Best way to display textarea content
Post new topic   Reply to topic    
 
rscl.mumbai     Joined: 17 Nov 2011   Posts: 6  
Post Posted: 2011-11-17 10:07
Back to top  Reply with quote     

Hi,

My MySQL table has about 10 columns, the last one being `Remarks`.

I am using the <textarea> element to Add/ Edit contents for `Remarks`. Its all working well.

My problem is, I would like to include the contents of `Remarks` on the List screen. But due to variable content length AND less width available on the web page, the visual appeal goes bad.

I was wondering if there is any way I can display a small image in a custom column and write a small code which which get the contents of `Remarks` onclick and show in a DIV.

Not sure if this is possible at all, if yes, how.

Any help is greatly appreciated.

Thanks in advance.

Sans

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-11-17 17:41
Back to top  Reply with quote     

You could can use
Code:
'trimlen|LF' => 30

to display only 30 characters. Otherwise you might use a virtual (dummy) field to pass the record ID to a custom popup script which queries the db for Remarks and displays them.

 
rscl.mumbai     Joined: 17 Nov 2011   Posts: 6  
Post Posted: 2011-11-18 09:33
Back to top  Reply with quote     

doug wrote:
You could can use
Code:
'trimlen|LF' => 30


Done this!!
Thx Doug.

Can you pls share a snippet for the below.
doug wrote:

use a virtual (dummy) field to pass the record ID to a custom popup script which queries the db for Remarks and displays them.


Much appreciated!

Thx
Sans

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-11-18 16:42
Back to top  Reply with quote     

You have to create that script yourself.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Odkazový formulár · Application form · Prihláška
Report bug on PLATON.SK website · Upozorniť na chybu na PLATON.SK webstránke · Terms of use · Podmienky použitia · Privacy policy · Ochrana osobných údajov