Who needs ASP? What can it to that CF can't? ;)
I don't know about ASP, but I *have* been able to use CF in non .cfm files.
I have a couple of .js files that I CFINCLUDE into a .cfm file. In these
.js files, I have some CF variables and what-not. The only way I can get
these variables to be parsed correctly is to pass the .js files to the
cfml.exe using code like this:
if (isMenu) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2'
SRC='../../cgi-bin/cfml.exe?template=//protected/contact/hierArrays.js'><\/S
CRIPT>");
}
the actual syntax is
path/to/cfml/file/cfml.exe?template=path/to/file/to/parse/file.xxx
This function parses out the cfml and then writes the parsed JavaScript to
the page for normal execution, though you don't have to use JavaScript.
That just happens to be the way I needed to implement it. ymmv.
This is on the client side though. I've never tried it with serverside ASP.
I don't even know if it will work, but it might be something to try. As far
as 'gotchas' go, I'm sure there are a few, so someone here probably has a
better solution. Just a thought.
Todd Ashworth
> Is it possible to combine Cf and ASP in the same template? If so, are
> there any "gotchas" I need to be aware of?
>
> Thanks,
> Eric
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.