Hello,
Using "submitForm" I'm posting data to a webserver when the user clicks on a button in a pdf-doc. Before and after uploading of the data I would like to check for certain values which were sent back by the webserver. Also I would like to temporary disable the "submit" button in order to prevent the user from clicking "submit" again, since the "submit"-window is not modal.
I know when the data transmission was started, I know when then transmission was SUCCESSFULLY ended. But I cannot find out when the transmission has timed out or was ended because of some other problem. In this case I have to enable the button again so that the user can try again.
So how can I find out if a data transmission is in progress or has ended?
I was playing around with the oJavaScript-Parameter in SubmitForm in order to store a value "Transmission in Progress" using the "Before" and a "Transmission Ended" using the "After", but I can't get it to work. Everything else works fine.
Here's the syntax:
this.submitForm({
cURL: "http://ts6/fdfgateway/response.asp",
aFields: new Array("here's the data"),
bEmpty: true,
oJavaScript:
{
Before: 'app.alert("before")',
After: 'app.alert("after")'
},
cSubmitAs: "FDF"
});
Nothing seems to get executed before or after the SubmitForm.
Has anybody ever worked with this parameter?
Regards
Christian
// the name of fields to be submitted:
var sMayFields = new Array("fieldName1", "fieldName2", "fieldName3");
this.submitForm({
cURL: "http://ts6/fdfgateway/response.asp",
aFields: aMyFields,
bEmpty: true,
oJavaScript:
{
Before: 'app.alert("before")',
After: 'app.alert("after")'
},
cSubmitAs: "FDF"
});
George Kaiser