ah ok so your doing it from JS.
In which case just have a counter that increments every time you click
the button and add that counter to your tabID, then it will be unique.

Russ

On Fri, Nov 4, 2011 at 3:57 PM, Randy Robinson
<[email protected]> wrote:
>
> Hi Russ,
>
> Yes, I could have anywhere from 1 to n years (3 in this example) and from 0 
> to n of the Form 130 within each of those years.
>
> I'll take a look at using the CreateUUID approach but I'm not sure that it's 
> not going to leave me in the same situation. Wouldn't CF would create the 
> UUID when the form first loaded and then it would be unique only at that 
> point? I need it to generate a new unique ID with every click of the "Add 
> 130" button.
>
> Thanks,
> Randy
>
>>I presume that you are using the same loop iteration to create more
>>than one tab thus why the duplicate id's ?
>>The easy way to generate unique ID's is to use CreateUUID() function.
>>
>>so you could just do this
>><cflayout name="#CreateUUID#" type="tab">
>>
>>
>>--
>>
>>Russ Michaels
>>
>>www.bluethunderinternet.com  : Business hosting services & solutions
>>www.cfmldeveloper.com        : ColdFusion developer community
>>www.michaels.me.uk           : my blog
>>www.cfsearch.com             : ColdFusion search engine
>>
>>sky
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348436
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to