Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Proving URL to Http submit button dynamically

Avatar

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile
Badri_Lakshmina
Level 2

25-08-2008

Hi,



I would like to set the POSTing URL for the HTTP submit button using javascript. Could somebody let me know the property on the button object that I can use to do this? I dont see a "URL" property for the button in the context assistant menu that pops up when I press the "." button next to the button name in javascript.



Regards,

Badri.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 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

611 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

26-08-2008

To access the property that holds the submit url you will need this expression:



xfa.resolveNode("Button1.#event.#submit").target

Avatar

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile
Badri_Lakshmina
Level 2

26-08-2008

Hi Paul,



Thanks a lot. Let me try this.



- Badri.

Avatar

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile
Badri_Lakshmina
Level 2

26-08-2008

Hi Paul,



The solution works, but then I try to submit the form, Adobe Reader throws following warning



"This document has accessed more then one site and might be trying to share data among different location. This could be a privacy concern. Are you sure you want to continue?".



Is there a way to turn this warning off? I am using LiveCycle Forms to generate the form.



- Badri.

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 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

611 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

26-08-2008

The warning is indicating that the form is being submitted to a different server than where it was served from. This is a warning message to the user that something might be wrong ....you can click the checkbox on the message that says not to show this again ..... but you will have to see it at least once.

Avatar

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Badri_Lakshmina
Level 2

Likes

0 likes

Total Posts

22 posts

Correct Reply

0 solutions
View profile
Badri_Lakshmina
Level 2

27-08-2008

Thanks Paul.