Trying to dynamically insert anchors.
I have an alpha list each letter has an href <a href="#A">A</a>, etc. It's supposed to correspond to a list of links below it (which is generated by looping over an array) If I just insert an anchor above the name I can give each link an anchor, but. What I need is one anchor before the A's, one before the B's etc. <cfloop from="1" to="#ArrayLen(arrBrowse)#" index="i"> <cfswitch expression="#attributes.browseBy#"> <cfcase value="title"> <!--- generates an anchor for each link---> <cfset ancr = "#Left(arrBrowse[i].JournalTitle,1)#"> <a name="#ancr#"></a> <li><a href="#myself##xfa.browseVolumes#&jcode=#arrBrowse[i].code#">#arrBrowse[i].J ournalTitle#</a></li> </cfcase> <cfcase value="subject"> <li class="bwTopicTitle"><a href="##" onclick="toggleVisibility('bwSubjectJournals#arrBrowse[i].TopicCode#');">#ar rBrowse[i].TopicTitle#</a></li> <li id="bwSubjectJournals#arrBrowse[i].TopicCode#" style="display:none;"> <ul class="bwSubJournals"> <cfloop from="1" to="#ArrayLen(arrBrowse[i].arrJournals)#" index="j"> <li class="bwSubjectJournal"><a href="#myself##xfa.browseVolumes#&jcode=#arrBrowse[i].arrJournals[j].code#"> #arrBrowse[i].arrJournals[j].journalTitle#</a></li> </cfloop> </ul> </li> </cfcase> </cfswitch> </cfloop> -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://www.sstwebworks.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276797 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4