on ‎2010 Oct 08 6:44 AM
Hi experts,
I call a web service in javascript when button is clicked. Please help check the following code:
try {
xfa.host.messageBox("welcome"); //pop-up
var myRequest={Celsius:"50"};
var service = SOAP.connect( "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl");
xfa.host.messageBox("Connected" + service); //pop-up "Connected[objectSoapService]"
for(var i in service) xfa.host.messageBox(i); //nothing
var response = service.CelsiusToFahrenheit(myRequest);
xfa.host.messageBox("Called");
xfa.resolveNode("TextField1").rawValue = response ;
} catch(e) {
xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}
Thanks.
Request clarification before answering.
I have been facing some problem using javascript with adobe acrobat.
My requirement is such that I have to validate a text field so that it contains only alphabets and then displays a message. The text field should go blank then and the focus should return to the text field.
Please provide me a solution for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.