Hi there!
I designed a form using LiveCycle Designer 8 and save it as a PDF.
I access the PDF through a html page.
The PDF worked all right if i using Acrobat pro 8,but when i using the PDF with Adobe Reader 8 it seemed that hostContainer can not work.
In the "docReady" event i call the following function:
function RegisterMessageHandler() {
event.target.hostContainer.messageHandler = {
doc:event.target,
onMessage: function(message)
{
onMessageFunc(message)
},
onError: function(error, message)
{
alert('PDF messageHandler onError: ' + error + ' ' + message);
},
onDisclose: function(cURL, cDocumentURL) { return true; }
};
}
And in the click event of a button i call this sentence:
if(!event.target.hostContainer)
app.alert( "No hostContainer obj" );
else{
.....
}
I don't know why Reader failed.
May be there is difference between Acrobat pro and Reader or the form need LiveCycle Extensions.
Can someone give me some idea?