Re: [iText-questions] How to launch javascript code for PDF form fields event.

2006-10-03 Thread AnhTuan Nguyen
Hi Bruno, Right now, i have found out the way to attach the _javascript_ code for form field event. The method PDFStamper.addScript() and PDF _javascript_ at document level was used to that. The script is below:   var f; var count = 0; for ( var i=0; i    var fname = this.getNthFieldName(i);

Re: [iText-questions] How to launch javascript code for PDF form fields event.

2006-10-02 Thread Bruno Lowagie (iText)
AnhTuan Nguyen wrote: > Thanks for your reply quickly, > I can do as your description, but i would like to know the way how to > get the existing form field, and add the java script code for this field. > I can't find out the any methods in order to get existing form field. That's too difficult

Re: [iText-questions] How to launch javascript code for PDF form fields event.

2006-10-02 Thread AnhTuan Nguyen
Thanks for your reply quickly, I can do as your description,  but i would like to know the way how to get the existing form field, and add the _javascript_ code for this field. I can't find out the any methods in order to get existing form field.   Regards, Tuan "Bruno Lowagie (iText)" <[EMAI

Re: [iText-questions] How to launch javascript code for PDF form fields event.

2006-10-02 Thread Bruno Lowagie (iText)
AnhTuan Nguyen wrote: > Hi itext supports, > I would like to launch java script code when the mouse clicks on the > form field (for existing PDF file). I have researched some iText API, > but i don't know how to do that. I have made a simple calculator in PDF: http://itext.ugent.be/itext-in-acti