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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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?

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
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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).