Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Dynamic anchors

    I have a dynamic page, which uses a table created from a resultset. The page
    can get long depending on the resultset and each row is a dynamic link that
    expands a section just below the link. The problem is that once the link is
    clicked the page refreshes with the expanded section but it may be at the
    bottom of the page requiring the user to scroll down to get back to where he
    clicked the link. I want to use an anchor tag but I keep getting an error
    stating that I can't use non-alphanumeric characters and that the first
    character can't be a number. Anyone have an idea on a workaround or way to get
    this working? Thanks!

    ldonner Guest

  2. Similar Questions and Discussions

    1. Going to anchors
      Hi! It's been years since I last came here. Five or so... But now I am back and starting to build a site again - using good old DW4. My...
    2. Anchors
      Hey, erm im currently trying to build a website for a project. I am currently stuck on anchoring to a specific area on a separate page. As my...
    3. Anchors within Dynamic Text
      I have a Flash button calling to a dynamic text box within a movie clip. My question is: Is there any way to add an anchor reference within the...
    4. Jumping to Anchors
      How am I able to jump to certain anchors on different pages?
    5. ie reading anchors
      Internet Explorer is not making the connections between anchors that are below the links on the page. When I set links that are to move to anchors...
  3. #2

    Default Dynamic anchors

    I have a dynamic page using a table created by a resultset which can get long
    resulting in a long page. Each row has a link and if the user clicks on it the
    page refreshes but returns to the top of the page. This forces the user to
    scroll down if the link he clicked is off the screen. I tried to use an anchor
    tag but I keep getting an error stating that I can't use non-alphanumeric
    characters and that the first character can't be numeric. Any ideas? Thanks!

    ldonner Guest

  4. #3

    Default Re: Dynamic anchors

    Hello ldonner In the past when I developed something similar I set the anchor
    value to 'ID and then the ID number for the returned value if it is coming from
    a database' . Is that what you are looking for.

    bawaite Guest

  5. #4

    Default Re: Dynamic anchors

    I just figured that out. Thanks fof the conformation.
    ldonner Guest

  6. #5

    Default Re: Dynamic anchors

    Figured it out! I need to use the 'id' attribute of a HTML tag. It doesn't have the same restrictions as the Named Anchor tag does.
    ldonner Guest

  7. #6

    Default Re: Dynamic anchors

    ldonner wrote:
    > Figured it out! I need to use the 'id' attribute of a HTML tag. It doesn't have the same restrictions as the Named Anchor tag does.
    Technically IDs do have the same restrictions as names do as to the
    value that attribute can take, that is can't start with a number, but
    it's possible that some browsers are lenient in that regard. If you were
    to add some scripting to the page, it would be more likely to break I think.

    I'd suggest that as you output the ID attribute that you just add "row"
    to the beginning of the ID value (or whatever is appropriate), that way
    you fall in line with the way things "should" be, and you won't have to
    worry about any browsers not liking what you're currently doing.

    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* 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