Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Best way to display textarea content

phpMyEdit General     Best way to display textarea content
Odoslať novú tému   Odpovedať na tému    
 
rscl.mumbai     Založený: 17.11.2011   Príspevky: 6  
Príspevok Zaslal: 2011-11-17 10:07
Návrat hore  Odpovedať s citátom     

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     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-11-17 17:41
Návrat hore  Odpovedať s citátom     

You could can use
Kód:
'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     Založený: 17.11.2011   Príspevky: 6  
Príspevok Zaslal: 2011-11-18 09:33
Návrat hore  Odpovedať s citátom     

doug Napísal:
You could can use
Kód:
'trimlen|LF' => 30


Done this!!
Thx Doug.

Can you pls share a snippet for the below.
doug Napísal:

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     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-11-18 16:42
Návrat hore  Odpovedať s citátom     

You have to create that script yourself.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov