This seems to work:

<cfsavecontent variable="DropDown">
<select name="whatever">
        <option value="1">One</option>
        <option value="2">Two</option>
        <option value="3">Three</option>
</select>
</cfsavecontent>

<cfoutput>
#DropDown#
<br><br>
#DropDown#
<br><br>
#DropDown#
</cfoutput>

You could just make whatever you need dynamic in the cfsavecontent block.


> -----Original Message-----
> From: Ian Lurie [mailto:ian@;portentinteractive.com]
> Sent: Friday, November 01, 2002 11:29 AM
> To: CF-Talk
> Subject: Performance Tweaking - Friday Morning Brain Fart
>
>
> Hi all,
>
> I've done this before but am having a post-halloween party moment:
>
> 1. I have a chunk of code that generates a drop-down menu. The menu's used
> again and again on a page.
>
> 2. I want to generate that code once, insert it into a variable, and then
> reuse it. That'll shave a LOT of time off the page execution time.
>
> I dimly remember an article by Ben Forta (I think) about this -
> can someone
> refresh my sugar-addled brain?
>
> Thanks,
>
> Ian
>
> --
> Portent Interactive
> Effective web sites through Conversation Marketing �
> http://www.portentinteractive.com
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Reply via email to