Hey Les,

Hmmm... not the most elegant solution, but...

Sounds like you're doing multiple requests, right?  So even if you
stuck the scripts in the request scope, you'd have multiple copies.
(At first I was going to say, use a custom scriptSrc for the cfform,
and point it at a CF file that only spits out the JS once per
request-- for all I know, that's what CF does anyways).

So, dunno if it's the most elegant solution, but you could set the
scriptSrc for your cfforms to a "blank" url.  Just an empty page.

For all but one of the cfforms!  Vwalla!

Or, have them all be blank, and read in the JS at the "top" of your page.

That's about all I can figure.

-- 
Insane sects grow with the same rhythm as big organizations. It is the
rhythm of total destruction.
Theodor Adorno

On Fri, Sep 12, 2008 at 12:44 PM, Les Mizzell wrote:
> William Seiter wrote:
>> in your cfinput/cfselect/cf[formtagname]
>> add this parameter: onValidate
>
>
> William, I understand how to use validation in cffroms. The problem is
> that I need to have multiple forms on a single page, and each form wants
> to generate its' own block of javascript - so if you open up the page
> with the multiple forms in the browser, and do view the source, you'll
> see the "_CF_checkform1(_CF_this)" function repeated in the source for
> each form on the page.
>
> I'm trying to find a way around this and have all forms look at a single
> js source, without generating multiple copies on the same page 9which
> ultimately causes validation to fail...)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312524
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to