[Xsltforms-support] surrogate hints
Brought to you by:
alain-couthures
From: Jens Ø. P. <oe...@gm...> - 2012-02-01 10:26:37
|
Dear list, This should be a simple question …. I am using revision 522, with eXist trunk. I use some innocent javascript code instead of the built-in xforms hints. <span class="xforms-hint"> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" class="xforms-hint-icon"/> <div class="xforms-hint-value"> <xf:output mediatype="application/xhtml+xml" incremental="true" ref="instance('code-tables')/code-table[code-table-name='hint-code']/items/item[value='name']/help" /> </div> </span> or (without use of output): <span class="xforms-hint"> <span onmouseover="show(this, 'hint', true)" onmouseout="show(this, 'hint', false)" class="xforms-hint-icon"/> <div class="xforms-hint-value"> <p> Use Topic to indicate any primary topical/abstract subjects that do not fit into the Geographic, Temporal, Title Information, or Name subfields. In general, abstract nouns should be used. While it is highly recommended that subject values be parsed into subfields, they may also be listed as a string, divided by e.g. dashes, as in Library of Congress Subject Headings. </p> </div> </span> Somehow this popup has ceased to work sometime after revision 511. With 522, only the icon is displayed. What could be the reason for this? I insert these "hints" after the field label, thereby getting a much nicer display of my (at times quite lengthy) hints texts. The hints don't move around on the screen like they do when they are attached to the right of fields (which have varying length) and they can therefore easily have a consistent greater width. Cheers, Jens PS: The "advertisement" in the 522 profiler should be updated. |