anchoring to text in an included file

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default anchoring to text in an included file

    Hello

    I've put a link in template to some text in file "cfincluded" in that
    template, using a link to an anchor. It won't work using <a href="#myanchor">.
    Is there away to achieve the link, please?

    Thanks very much.

    Dave199 Guest

  2. Similar Questions and Discussions

    1. BIG file sizes with ICC included
      I just noticed this after fixing up my color settings and icc profile. When i save an AI CS file, and have "include ICC profile" checked in the...
    2. Indesign CS - Anchoring Graphics with Text
      You need to use an inline graphic or set everything up in tables. Bob
    3. Indesign CS - Anchoring Graphics with Text
      Indesign CS - Windows XP Professional - Athlon 2400 - 512M Ram I have a simple 50 page manual (1 master page) broken up into 10 sections. I'm...
    4. Problem occurs when included file includes anther file.
      The directory structure is as follows: / |-- demo.php |-- inc/ |-- inc1.php |-- inc2.php === file demo.php == <?php require 'inc/inc1.php';
    5. [PHP] Problem occurs when included file includes anther file.
      Thank you for your reply first. Yes I know I could set include_path either in the php.ini or at runtime.But it's a little bit dirty I think.What...
  3. #2

    Default Re: anchoring to text in an included file

    That actually will work.

    The thing to remember is that the cfinclude doesn't make any difference. Only the resulting HTML matters for anchor links.
    SteveBryant Guest

  4. #3

    Default Re: anchoring to text in an included file

    The thing to remember in any .cfm file is that the # symbol has special
    significance. In your case, to have the anchor symbol treated correctly, you'd
    need to double escape the # symbol so it becomes:

    <a href="##myanchor">

    CF will then handle it correctly and the generated html will contain the
    correct anchor link.

    cheers.


    efecto747 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139