No - code works fine -that was just a typo from me when retyping it in
for an example.
I just need to know who to prevent a page from jumping using the anhor /
name refs

thanks,
jason

Bryan Stevenson wrote:


Jason,



This code should throw and error:

<cfoutput query="OutputList">

<a href="##Count#">Technology & Security Benefits</a>

</cfoutput>



You should have an extra # in front of ##Count# (###Count#)



I'm not sure if that will solve your issue, but there ya go ;-)



Bryan Stevenson B.Comm.

VP & Director of E-Commerce Development

Electric Edge Systems Group Inc.

t. 250.920.8830

e.  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>




---------------------------------------------------------

Macromedia Associate Partner

www.macromedia.com <http://www.macromedia.com> 

---------------------------------------------------------

Vancouver Island ColdFusion Users Group

Founder & Director

www.cfug-vancouverisland.com <http://www.cfug-vancouverisland.com> 

----- Original Message -----

From: "Jason Miller"   <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

To: "CF-Talk"   <mailto:[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

Sent: Thursday, February 20, 2003 1:30 PM

Subject: SOT Topic - Voiding href - anchor page jumps





  

Hello list - sort of off topic but involves cf and very critical for me

- rather my client

I have quite a few lists being output from coldfusion - the way the page

works is that I am using named anchors with

<cfoutput query="OutputList">

<a href="##Count#">Technology & Security Benefits</a>

</cfoutput>

so that would increment - href="#1", href="#2" etc etc



which obviously jumps down to the <a name="2"></a>(or whatever number

obviously it relates to) further down the page.

But page shifts as well... typically this is okay -but I am jumping

layers around - so it is important page does not shift -



I had tried implementing

<a href="#2" onClick( "javascript:(void);" <javascript:(void);>
>Technology & Security

    

Benefits</a>

  

but that obviously terminates the href - so hyper link doesn't do

    

anything.

  

I know that simply placing the javascript(void) in the href tag will

prevent page from jumping on empty tags - but how do I accomplish this

when I need the anchor to work?

Thanks!

jason miller





    


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
                                

Reply via email to