1 Reply Latest reply on Aug 1, 2012 12:05 PM by George_Johnson

    Validate a link




      I have a button in a PDF that links to an HTML file online. It possible to validate the link and if not valid (ie file doesn't exist), change the link to something else?


      currenlty I have:


      //-----------------Do not edit the XML tags--------------------

      /*********** belongs to: AcroForm:Button1:Annot1:MouseUp:Action1 ***********/
      fixed = "http://mywebsite.co.uk/";
      filename = this.documentFileName;
      urn = this.documentFileName.split(".").shift();
      folder = urn+"/";
      page = urn+".html";
      url = fixed+folder+page;



      If the url is not valid, then app.launch(url) tries a different url.