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

Make this html/java page work in Acrobat.

SeanCooke
Registered: Jan 14 2008
Posts: 4

Sean's Super awesome stupendious amazing javascript widgit-o-matic doohickie!

function update(targetId, value) {
target = document.getElementById(targetId);
target.innerHTML = value;
}

is going to go for a in with lots of to help.

Your Name:

A Plural Noun:

A Verb:

A Location:

Any thoughts?

My Product Information:
Acrobat Pro 8.1.2
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
JavaScript is JavaScript, Core JavaScript is the same everywhere, but each application that implements JavaScript has it's own DOM (Document Object Model) for integrating it into the application. What this means is that JavaScript code written for one application, like a web browser, has absolutely no meaning in another application, like Acrobat.

However, if you are a masochist, you can display HTML in a Flash or Flex application, which can be played in a multimedia annotation in a PDF. But it can't actually be part of the PDF.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

SeanCooke
Registered: Jan 14 2008
Posts: 4
Ok, is there any way to create a PDF that will mimic this script. By placing user input into an existing paragraph so the text can continue to flow?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Not in an AcroForm PDF. PDF pages are fixed content. Interactivity is added to the PDF with annotations, form fields, buttons, comments, shapes, etc. these are boxes that float above the fixed page content. The annotations are dynamic, but the page content is not.

If you want something more dynamic, then look at LiveCycle Forms.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script