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

How to acquire data from external sources in READER

mcgirr
Registered: Jun 18 2008
Posts: 21

Hi,

I am trying to use a web service in my form, but it seems like READER cannot consume web services.

So what I have done is created a web page that accepts a query string as the parameter, and the web page then buffers the return value back.

Now how would I go about consuming this in the Lifecycle IDE?

What I have is a text box which the user will enter in the data which becomes my input parameter. So I need to concatenate the GET URL string e.g.

http://mydomain.com/website/service.aspx?val=

I then need to submit this request, and capture the response and stick it into another text box.

So for simplicity sakes, lets say the button is called btnSubmit and there are 2 textboxes, txtInputParamter, and txtOutputValue.

Can some one advise how I would do this using Adobe javascript API please?

Thanks

mcgirr
Registered: Jun 18 2008
Posts: 21
OK.

This is what I have done so far.
I added a BUTTON to the form and in the onmousedown event I add the following code


var val = txtInputParamtere.rawValue;

event.target.submitForm({
cURL: "http://domain/website/service.aspx?id=" + val,
cSubmitAs: "HTML",
cCharsEt: "utf-8"
});


Now, this will send the HTTP Request to my web page where it extract the ID query string and does its processing. I then need to return a string value back, so in the web page I buffer it out to the response.

Now how can my adobe form get this string result and display it in a text field?
Right now it just shows the rendered HTML response.


Thanks