2 Replies Latest reply on Apr 27, 2011 1:46 PM by Ned Murphy

    GETURL ERROR

    melas076 Level 1

      Dear all,

       

      I need help with this code: bigImage.productTitle["txtlink"].onRelease = function(){
                  getURL("+linktxt+","_blank");
              };

       

      linktxt is an attributes from xml = "pdf files"

       

      i apreciate your help

       

      MELAS

        • 1. Re: GETURL ERROR
          Ned Murphy Adobe Community Professional & MVP

          I cnanot account for anything else in the code, but you should not be quoting the link as you have.  If linktxt is a string of a url then use:

           

          getURL(linktxt,"_blank");

          • 2. Re: GETURL ERROR
            Ned Murphy Adobe Community Professional & MVP

            I should add that the line  before that is also questionable... if txtlink is a variable you do not want to quote it, as in...

             

            bigImage.productTitle[txtlink].onRelease

             

             

            and if it is a String you do not need to use it as a String at all since it is a complete word in the brackets by itself, as in...

             

            bigImage.productTitle.txtlink.onRelease