Highlighted

javascript doesn't work with Adobe Reader 9

Avatar

03-12-2008

I have a submit button. Its function is to close the form. The click event has this code:



var myDoc = event.target;

myDoc.closeDoc(true);



Using Adobe Reader 8, it works fine. If we use Adobe Reader 9, the form doesn't close.



I'm using Adobe LiceCycle Designer 8.05.2073.



Thanks.

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

04-12-2008

Are you running inside of a browser or standalone? Can you hit Ctrl-J and see if there are any messages on the java console?
Highlighted

Avatar

04-12-2008

Our forms are inside a browser. I get this from the java console:



NotSupportedError: Not supported in this Acrobat configuration.

Doc.closeDoc:3:XFA:form1[0]:#subform[0]:btnSave[0]:click

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

04-12-2008

You cannot close the doc inside of a browser as all that is left is an empty shell (unlike the Acrobat application where you still have an application to do something with).