Kamila,
The trick is to just change the extension on the Menu_Array.js to a .cfm and
call if from the loader file. You can also change the Loader.js to .cfm and
call it just like a .js file like this from you main document...
<!-- Load Menu Script -->
<cfoutput><SCRIPT LANGUAGE="JavaScript1.2"
SRC="/Assets/Menus/Menu_Loader.cfm?Section=#Replace(Section, " ", "_")#"
TYPE='text/javascript'></SCRIPT></cfoutput>
Down at the bottom of your Menu_Loader.js (now Menu_Loader.cfm) you call
your re-extensioned Menu_Array
<cfoutput>
if(HM_IsMenu) {
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2'
SRC='/Assets/Menus/Menu_Arrays.cfm?Section=#Section#'
TYPE='text/javascript'><\/SCR" + "IPT>");
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2'
SRC='/Assets/JavaScripts/HM_Script"+ HM_BrowserString +".js'
TYPE='text/javascript'><\/SCR" + "IPT>");
}
</cfoutput>
ronald-thomas
w: wildminds.net
c: 512.426.4233
-----Original Message-----
From: Kamila J. Kulesza [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 5:21 PM
To: CF-Talk
Subject: Javascript HierMenus
This is a multi-part message in MIME format.
------=_NextPart_000_0056_01C14201.01146980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi everyone, I have a question about the HierMenus, is it possible to =
implement database in these menus? I'm trying to do a menu where the =
menu topics come out of the database. I'm using cold fusion and when I =
write the code in the js file it doesn't recognize it. I have configured =
the menu to what I want, but the problem I'm having has to do with the =
fact that .js file doesn't read cfm language. So I tried to call the cfm =
in the javascript where it calls .js but it doesn't work. Do you know =
anything about that? I've been picking my brain for 3 days now and I =
can't figure it out. Please let me know if you know something.
Thanks in advance,
Kamila
------=_NextPart_000_0056_01C14201.01146980
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2>Hi =
everyone, I have a=20
question about the HierMenus, is it possible to implement database in =
these=20
menus? I'm trying to do a menu where the menu topics come out of the =
database.=20
I'm using cold fusion and when I write the code in the js file it =
doesn't=20
recognize it. I have configured the menu to what I want, but <FONT =
face=3DArial=20
size=3D2><FONT face=3DArial size=3D2>the problem I'm having has to do =
with the fact=20
that .js file doesn't read cfm language. So I tried to call the cfm in =
the=20
javascript where it calls .js but it doesn't work. Do you know anything =
about=20
that? I've been picking my brain for 3 days now and I can't figure it =
out.=20
Please let me know if you know =
something.</FONT></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kamila</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0056_01C14201.01146980--
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists