These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

can popup dialog box submit a web request similar to a form?

adoacr
Registered: May 4 2011
Posts: 41
Answered

Hi,
 
Have been reviewing the tutorials at http://acrobatusers.com/tutorials/2006/popup_windows_part5
and need to check if a pop up dialog box (activated from a link, say)
can actually submit data using a post to a servlet? right now im
doing this with a form but would be much better if I could do it using
a pop-up dialog box? any pointers to examples are much apprecated.
thanks

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
You can initiate a form post in response to a dialog box being dismissed. The data you want to submit would need to be placed in one or more form fields, which can be hidden. When using the submitForm JavaScript method, you can specify which fields you want included in the POST.
adoacr
Registered: May 4 2011
Posts: 41
can the form fields be in the dialog box itself. since it is the data in the dialog box that I want to submit.
in other words, I want the dialog box to behave like the form...
adoacr
Registered: May 4 2011
Posts: 41
any examples?
adoacr
Registered: May 4 2011
Posts: 41
so are you saying that I take the data that the user inputs and copy them onto hidden form fields and when the user clicks 'ok'(say) on the dialog box, it is the hidden form fields that get submited? or is the above approach where the form fields are in the dialog box itself or the dialog box fields themselves are submited possible?
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Accepted Answer
Yes, I was speaking of the first scenario. You can't submit the dialog contents directly.
adoacr
Registered: May 4 2011
Posts: 41
thanks. will try that approach