The open/close Javascript tags need to be physically above the VBscript in 
the final HTML source.  It may work in your app to put this in the handler; 
it may not ... sorta depends on your app.

You can also try putting the open/close script tags in the HEAD via 
CFHTMLHEAD ... but that can break if you're doing any kind of 
method-caching, since caching can prevent that tag from firing

-D

At 09:14 AM 5/9/2001 Wednesday, you wrote:
>I think this explains a problem I had a few months back with some Spectra
>tags inside a control handler. I forget how I got around that one.
>
>Would your work-around work if I simply added an open and close script tag
>pair at the top of the handler?
>
>Dave.
>
>----- Original Message -----
>From: "David An" <[EMAIL PROTECTED]>
>To: "Spectra-Talk" <[EMAIL PROTECTED]>
>Sent: Wednesday, 09 May, 2001 2:59 AM
>Subject: controlHandler scripts
>
>
> > Here's a tricky one:
> >
> > The JavaScripts created by the controlHandler tags - specifically, the
> > function "_cfainvokecontrolhandlerevent" (and possibly elsewhere; haven't
> > checked) - are output to the page using <SCRIPT> tags that don't specify
> > LANGUAGE="JavaScript".  This can cause problems if the first script on
>your
> > page is a VBScript, because the unqualified script tags then assume
> > VBScript, and throw errors on the JavaScript code.
> >
> > The workaround is to make sure that the first script tag on your page is
> > JavaScript - or to mod the controlHandler tags ...
> >
> > -- David
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to