Barney, My hat is off to you. It works flawlessly.
Thank you very much, Terry Troxel -----Original Message----- From: Barney Boisvert [mailto:[email protected]] Sent: Wednesday, December 17, 2008 8:37 AM To: cf-talk Subject: Re: How do I use <A name="bookmarkname" in a cfm document If you want to load a page at the "bookmark" (it's really a named anchor), then you need to append a hash to the URL. So your link on the edit page should look like this: <a href="jobs.cfm###jobNumber#">BACK</a> And now that I think about it, you don't want the literal hash in the name. It was late. :) jobs.cfm should have this in it: <a name="#jobnumber#"></a><a href="edit.cfm?jobNumber=#jobNumber#">edit</a> cheers, barneyb On Wed, Dec 17, 2008 at 8:28 AM, Terry Troxel <[email protected]> wrote: > Thanks Barney, > I did exactly that before posting my question as it just doesn't work as > advertised. > Tell me if this is the problem. > I run a query as in > select * from the jobdatabase > order by jobnumber > > then I do an output query and run through all the jobs > > each job has a display of various data with the jobnumber having a link to > an edit page for that jobnumber as in <a > href="editjob.cfm?jobnumber=#jobnumber#">#jobnumber#</a> > > On this edit page there is this url we are speaking about and it > Points back to the page that has the jobnumber query displayed and it > refreshes the page as in <a href- > > This works fine but they are at the top of the page. > > I am adding a bookmark as in <a name = #jobnumber#></a> > Above each jobnumber's link to the edit page for that jobnumber as in > <a name="###jobnumber#"><a href="jobs.cfm?jobnumber=#jobnumber#"> BACK </a> > > What am I doing wrong? Or what am I missing? > > Help....... > > Terry > > -----Original Message----- > From: Barney Boisvert [mailto:[email protected]] > Sent: Tuesday, December 16, 2008 8:44 PM > To: cf-talk > Subject: Re: How do I use <A name="bookmarkname" in a cfm document > > You escape a hash by putting another one in front of it: > > <cfoutput>##</cfoutput> > > will yield a single hash in the generated output: > > # > > So for your specific case, you want this (or something like it): > > <a name="###jobnumber#"><a href="mypage.cfm?jobnumber=#jobnumber#">.... > > This (doubling) is also how you escape quotes inside CF strings, while > we're on the topic: > > <cfset myString = "string with ""quotes"" inside" /> > > cheers, > barneyb > > On Tue, Dec 16, 2008 at 8:40 PM, Terry Troxel <[email protected]> wrote: >> I have a page with a query to select all jobnumbers from a table and an >> output query that displays info on each jobnumber. >> >> I would like to add a bookmark above each #jobnumber# and am unsure how to >> do it as it requires a # sign in the href calling the page as in >> <a href="mypage.cfm?jobnumber=#jobnumber#">JOB NUMBER</a> >> >> Terry Troxel >> >> >> >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316877 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

