http://www.url.com/blinkComments.cfm?blinkID=19#Comment42
Is an example of what's generated. Then, after a quick moment, IE (or Opera) strips out the #Comment42, but the page still jumps appropriately. > -----Original Message----- > From: Taco Fleur [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 2:53 AM > To: CF-Talk > Subject: Re: Linked Anchors > > > can you post the HTML code it generates? > > ----- Original Message ----- > From: "Russ" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, February 26, 2003 5:37 PM > Subject: RE: Linked Anchors > > > > Yeah-- > > > > I've done that, actually. Looks well, works well, but when > you click on > > a link, it drops off the anchor in IE, and the main purpose > is so that > > users can find the actual location of specific comments on > a page and > > reference them later. > > > > Gah. Still failing. Anyone have any idea why IE would do > this? Using > > URLEncodedFormat adds a / at the end and that just forces > it to break, > > as well. > > > > Russ > > > > > -----Original Message----- > > > From: Jann VanOver [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, February 26, 2003 1:30 AM > > > To: CF-Talk > > > Subject: Re: Linked Anchos > > > > > > > > > It looks right to me. Are you sure all your variables > > > (qBlink.blinkID & > > > qCommentDisplay.commentID) are defined as you expect? > > > > > > When in doubt, break up the URL and see how it looks: > > > > > > <cfset baseURL = > > > "http://www.url.com/blinkComments.cfm?blinkID=#qBlink.blinkID#"> > > > <cfset anchorName = "Comment#qCommentDisplay.commentID#"> > > > <cfset myFullURL = baseURL & "##" & anchorName> > > > > > > <a href="#myFullURL#"> > > > > > > > > > On 2/25/03 9:27 PM, "Russ" > <[EMAIL PROTECTED]> wrote: > > > > > > > I'm working on trying to dynamically create a link that > jumps to an > > > > anchor in a page, but the link itself is dynamically > > > generated, and I > > > > don't seem to be having much luck. > > > > > > > > Here's my anchor: > > > > > > > > <a > > > > name="Comment<cfoutput>#qCommentDisplay.commentID#</cfoutput>"></a> > > > > > > > > Here's my link: > > > > > > > > <a > > > > > > > href="http://www.url.com/blinkComments.cfm?blinkID=#qBlink.bli > > > nkID###Com > > > > ment#qCommentDisplay.commentID#" class="blinkCMT">link</a> > > > > > > > > I've tried using URLEncode without any success on this, > and I'm not > > > > certain that I'm escaping out the #s correctly, but this > > > doesn't seem to > > > > work right. > > > > > > > > Any thoughts? > > > > > > > > Thanks, > > > > > > > > Russ > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4