[pmwiki-users] new recipe: datepicker

Hans design5 at softflow.co.uk
Sun Feb 7 11:44:45 CST 2010


Sunday, February 7, 2010, 5:24:49 PM, Knut Alboldt wrote:

> fine, I'll be back when I've corrected the erros, could you send me the
> HTMLHeaderFmt-changes (iI guess you changed it to use <link ...>-tags to
> the css etc ?

Just now i got this (3 lines, watch for email line breaks):

$HTMLHeaderFmt['datepicker'] = "<script type='text/javascript' language='JavaScript1.2'>".datepicker_translate()."</script>\n"
  ."<script type='text/javascript' language='JavaScript1.2' src='$FarmPubDirUrl/datepicker/datepicker.js'></script>\n"
  ."<link rel='stylesheet' type='text/css' href='$FarmPubDirUrl/datepicker/datepicker.css' />\n"

Perhaps the datepicker/ part could be set with a $DatepickerDirUrl
variable? And this also be used in the $DatapickerImg variable?
Perhaps like

$DatepickerDirUrl = '$FarmPubDirUrl/datepicker/';

and then use $DatepickerDirUrl in the above $HTMLHeaderFmt ?

cheers,
  ~Hans




More information about the pmwiki-users mailing list