2 Replies Latest reply on Nov 14, 2008 12:40 AM by Newsgroup_User

    Runtime Link Checker?

    ashe
      I've got a page that displays dynamic links and there will be times where the destination file for some links will not exist, thus throwing a 404 error. The links that do not have a destination file may change from day to day. Is there a way to check the links before the page is displayed to see if the destination file exists? And if it does not, have ColdFusion display an icon next to those links that would throw a 404 error?
        • 1. Re: Runtime Link Checker?
          fober1 Level 1
          Hi,

          Have a look at the <cfhttp> tag.

          cheers,
          fober
          • 2. Re: Runtime Link Checker?
            Level 7
            ashe wrote:
            > I've got a page that displays dynamic links and there will be times where the
            > destination file for some links will not exist, thus throwing a 404 error. The
            > links that do not have a destination file may change from day to day. Is there
            > a way to check the links before the page is displayed to see if the destination
            > file exists? And if it does not, have ColdFusion display an icon next to those
            > links that would throw a 404 error?

            You can use CFHTTP and the HEAD method.

            --
            Mack