Highlighted

Proving URL to Http submit button dynamically

Badri_Lakshmina

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

Highlighted

pguerett

26-08-2008

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



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

Badri_Lakshmina

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

pguerett

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.