This topic is locked

Input mask for time

9/25/2007 2:05:42 PM
PHPRunner General questions
J
JahWobbler author

Is there a way to implement a mask ' : : ' for a time input ?

I've seen a javascript solution for html at
http://www.xaprb.com/blog/2006/11/02/how-t...-masks-in-html/
but don't know how to apply it.
Any help appreciated

J
Jane 9/26/2007

Hi,
you can do it editing generated include/commonfunctions.php file manually:

  • find and edit this code:
    echo '<input type="text" name="'.$cfield.'" '.GetEditParams($field).' value="'.htmlspecialchars($val).'">';


  • add required JavaScript and CSS files to the output directory.

J
JahWobbler author 9/26/2007

Hi,

you can do it editing generated include/commonfunctions.php file manually:

  • find and edit this code:
  • add required JavaScript and CSS files to the output directory.


Hi Jane

I put the mod in source/commonfunctions so left with adding a line to _add.php and _edit.php after build to get the body onload included.

Works a treat!

Many thanks