Stanley Bondi wrote: > Sorry to be asking so many questions, I really should start doing some work for myself now. That's difficult if people keep on asking questions...
> Where can I get Bl with iText, I have seen other "Keys" but not Bl. I referred to my book (and so did you by the way). Have a look at this PDF: http://itext.ugent.be/itext-in-action/examples/chapter15/results/field_actions.pdf It has an object like this: 4 0 obj <</Type/Annot /AP<</N 1 0 R>> /F 4 /V() /Subtype/Widget /T(uppercase) /AA<< /K<< /S/JavaScript/JS(event.change = event.change.toUpperCase\(\);) >> /Bl<< /S/JavaScript/JS(app.alert\('COMB lost the focus'\);) >> /Fo<< /S/JavaScript/JS(app.alert\('COMB got the focus'\);) >> >> /BS<</S/I/W 1>> /Ff 16777216 /Rect[140 790 200 810] /DR<</Font<</Helv 2 0 R>>>> /FT/Tx /MaxLen 4 /DA(/Helv 0 Tf 0 g ) >> endobj Do you see the Additional Actions (AA) for Keystroke (K), lose (Bl) and get focus (Fo)? You say you know how to retrieve JavaScript from a field, well, now adapt your example so that it retrieves the rest of the JavaScript like app.alert('COMB got the focus'); br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
