Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 13. október 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Text Field

phpMyEdit Features     Text Field
Odoslať novú tému   Odpovedať na tému    
 
JammerPro     Založený: 07.12.2006   Príspevky: 33  
Príspevok Zaslal: 2009-10-24 14:43
Návrat hore  Odpovedať s citátom     

Hi all,

I have a text field that can get rather large... I use the limiter to display 60 characters in List and Filter view at present.

Does anyone know any Javascript or anything else I can use to see the entire note when I mouseover, or click (like a popup window)...

What also would help is if I was able to scroll the text box in List and Filter view...

A little bit of instruction on how to incorporate this feature into PhpMyEdit would be very helpful.

Thanks in advance for your thoughts.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-10-24 16:18
Návrat hore  Odpovedať s citátom     

I rarely get into exotic CSS id, class, DIV positioning, but perhaps adding a CSS class (overflow:auto;) to the field would facilitate your addition of CSS scrolling so that trimlen could be removed. Maybe for experimentation, do a View Source in list mode and manually add a style class and CSS the desired field.

Kód:
'css|FL' => array('postfix' => 'scroller1'),");


Usage of Firefox's Web Developer Toolbar / CSS / View Style Information (on mouse over) is helpful in determining each of 75 or so styles within various page modes. (easier than View Source using web browser)

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2009-10-24 16:48
Návrat hore  Odpovedať s citátom     

It appears that a DIV tag with appropriate CSS would have to surround the data (using CONCAT) in order to create a scrolling box.

Or maybe CONCAT could be used to wrap a Javascript onMouseOver-type balloon to display content.

Updated 25 Oct 2009 the following creates a scrollable DIV in List/Filter mode.

Kód:
// Does not work if:
//   the field contains HTML markup
//   'strip_tags|LF' => true
//   'trimlen|LF'    => 0

$opts['fdd']['comments'] = array(
  'default'    => '',
  'escape'     => false, // required for DIV tag to work
  'input'      => '',
  'maxlen'     => 65535,
  'name'       => 'Comments',
  'options'    => 'ACPVDFL',
  'required'   => false,
  'select'     => 'T',
  'sort'       => false,
  'sql|LF' => 'if(comments > "",
    CONCAT("<div style=\"border:1px solid #cccccc;height:72px;overflow:auto;\">",
      comments,
        "</div>"),
          "")',
  'sqlw'       => 'TRIM("$val_as")',
  'textarea'   => array('rows' => '20', 'cols' => '150')
);


 
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