When I do an HTTP Post from a PDF that is opened within Reader itself (as opposed to through a browser), the page that gets returned is cached locally and then rendered from there. Is there anyway around this? This prevents me from have the site it is posted to take control and act as a seamless web application. Any tips? (The functionality works fine when it is within the browser, but I obviously cannot guarantee that it will be). I would like to stay compatible with 7.0 (or maybe 7.0.5?) if at all possible.
Place this code in a document script
this.nocache = true;
You can detect wether the PDF is open in a browser or Acrobat with the "external" property.
For example, place this doce in a document or page open script:
if(!this.external)
app.alert("Form must be used from within a browser");
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script