CTAN Comprehensive TeX Archive Network

CTAN up­date: gray­hints

Date: Novem­ber 3, 2018 2:42:56 PM CET
Don­ald P. Story sub­mit­ted an up­date to the gray­hints pack­age. Ver­sion num­ber: 2018-11-01 Li­cense type: lp­pl1.2 Sum­mary de­scrip­tion: Pro­duce ‘gray hints’ to a vari­able text field An­nounce­ment text:
This pack­age pro­vides JavaScript code snip­pets to cre­ate 'gray hints'. Gray hints, as I term them, are text that ap­pears ini­tially in a text field that gives a short hint as to what the con­tents of the text field should be; for ex­am­ple, a text field might con­tain the hint 'First Name', or a date field might read 'yyyy/mm/dd'. As soon as the field comes into fo­cus, the hint dis­ap­pears. It reap­pears when the field is blurred and the user did not en­ter any text into the field. What's New (2018/11/01) Re­vised pack­age to work cor­rectly with PDF-XChange Edi­tor (not PDF-XChange View). Im­proved code for han­dling the case where the user com­mits date by press­ing the En­ter key (the data is com­mit­ted, but the field does not blur). Some com­mands for cus­tomiz­ing the user ex­pe­ri­ence in the case of press­ing the En­ter key to com­mit.
This pack­age is lo­cated at http://mir­ror.ctan.org/macros/la­tex/con­trib/gray­hints More in­for­ma­tion is at https://www.ctan.org/pkg/gray­hints
Thanks for the up­load. For the CTAN Team Man­fred Lotz We are sup­ported by the TeX user groups. Please join a users group; see http://www.tug.org/user­groups.html .

gray­hints – Pro­duce ‘gray hints’ to a vari­able text field

The pack­age pro­vides JavaScript code snip­pets to cre­ate ‘gray hints’. Gray hints, as the au­thor terms them, are text that ap­pears ini­tially in a text field that gives a short hint as to what the con­tents of the text field should be. For ex­am­ple, a text field might con­tain the hint ‘First Name’, or a date field might read ‘yyyy/mm/dd’. As soon as the field comes into fo­cus, the hint dis­ap­pears. It reap­pears when the field is blurred and the user did not en­ter any text into the field.

The pack­age works for dvips/Dis­tiller, pdf, Lua, and XeLaTeX.

Pack­agegray­hints
Ver­sion 2018-11-01
Main­tainerDon­ald P. Story

An­nounce­ments

more

Guest Book Sitemap Contact Contact Author