You can still have CF parse the .js file (or any extension for that matter). Simply
CFINCLUDE it.
Instead of calling the .js file with a SCRIPT SRC="" tag, put in the SCRIPT tags and
then CFINCLUDE the hierArrays.js between them. Wrap a CFOUTPUT around the contents of
hierArrays.js and tack the #request.urltoken# onto the end of those URLs.
HTH,
-Max
At 11/2/2000 08:17 PM -0600, you wrote:
>I'm working on a DHTMl navigation menu using the hierarchal menu system at
>webreference.com. I am having a problem with figuring out how to add a cf
>token to the links within the javascript file.
>
>The menu system calls a file hierArrarys.js which contains the arrays for
>the DHTML menu links. These arrays are set up similar to this:
>
>arMenu1 = new Array(
>"",
>162, 200,
>"","",
>"","",
>"","",
>"Login","http://preview.wjol.com/members/index.cfm",0,
>"Logout","http://preview.wjol.com/index.cfm?rememberme=no&logout=yes",0,
>"Edit
>Profile","http://preview.wjol.com/members/index.cfm?fuseaction=edituser",0,
>"Become a
>Member","http://preview.wjol.com/members/index.cfm?fuseaction=newuser",0
>)
>
>I can add the fuseactions to these urls, but I can not add the token. I know
>that I can not use any cf functions on the .js file. Has anyone used
>webrefence's dhtml script with tokens added or any ideas. Unfortunately,
>my javascript is not the greatest.
>
>Here is a preview of the menu without the request.token's (this is not how
>the site is going to look either...more of a proving ground).
>http://preview.wjol.com
>
>Thanks in advance.
>
>John Lucas
>[EMAIL PROTECTED]
>
>
>------------------------------------------------------------------------------
>To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.