Just wanted to mention a related point.
A JavaScript library file can be in-lined via either <CFINCLUDE> or <SCRIPT
SRC=''>, as noted in ColdFusion Studio
4.5\Help\Exchanging_Data_via_XML\wddx07.htm, quoted here:
A <script src=></script> can be used instead
wddx.js is part of the ColdFusion distribution --->
<cfinclude template='/CFIDE/scripts/wddx.js'>
I had been using the CFINCLUDE method, but when my host upgraded from 4.0.1 to
4.5.2 SP2, this failed. (I think they changed some permissions or something.)
I switched to the <SCRIPT SRC=''> method and all is fine. I just mention it
in case anyone else is bitten by the same problem.
-David
On Friday, April 20, 2001 5:45 PM, David Shadovitz [SMTP:[EMAIL PROTECTED]]
wrote:
> Is "Function" really uppercase in the CFINCLUDE file? That'd do it.
> -David
>
> On Friday, April 20, 2001 4:06 PM, Bruce, Rodney [SMTP:[EMAIL PROTECTED]]
> wrote:
> > Help
> >
> > Why would JS work when its on a page between
> > <SCRIPT> tags, but when I take the same code and copy it to separate page,
> > and use
> > <CFINCLUE>, I get the error object is expected, referring to the function
> > call.
> >
> > example:
> >
> > <SCRIPT >
> >
> > Function f1(){
> > }
> >
> > </SCRIPT>
> >
> > <body>
> > <a href="javascript:f1();">link</a>
> > </body>
> >
> >
> > compared to:
> >
> > <!---------template-------->
> > <SCRIPT >
> >
> > Function f1(){
> > }
> >
> > </SCRIPT>
> > <------------------------->
> >
> >
> >
> > <!---------calling page-------->
> > <CFINCLUDE template="tempname">
> >
> > <body>
> > <a href="javascript:f1();">link</a>
> > </body>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists