Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Does Adobe Reader 8 support hostContainer?

Anonymous
Not applicable
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?
0 Replies