Does any one know how to reference a pdf document's fields (data entered by user) without building a cgi application on the server????

I heard you can do it with Java script, but how?