Hello Dave,
how about this:
<script language="JavaScript1.2">
dqm__subdesc2_0 = "Home" ;
dqm__url2_0 = "index.cfm";
<cfoutput query="menu">
dqm__subdesc#CurrentRow#_#sub# = "#pagetitle#";
dqm__url#CurrentRow#_#sub# = "#url#";
</cfoutput>
</script>
Kind Regards,
Christopher Dawes
Dawes International
Tuesday, February 18, 2003, 4:25:44 AM, you wrote:
DP> Hi,
DP> I have a DHTML menu system which I am trying to integrate into a CF app. I
DP> have certain items which are fixed and the rest will be driven from the
DP> db. I have discovered that the numbering needs to be consecutive and
DP> cannot have gaps. Here's a code snippet:
xc
DP> <script language="JavaScript1.2">
DP> dqm__subdesc2_0 = "News Service" ;
DP> dqm__subdesc2_1 = "Flame";
DP> dqm__subdesc2_2 = "Diary";
DP> dqm__subdesc2_3 = "Conference";
DP> dqm__subdesc2_4 = "Media Office";
DP> dqm__subdesc2_5 = "Grants & Funds";
DP> dqm__subdesc2_6 = "Campaigns";
DP> dqm__url2_0 = "index.cfm";
DP> dqm__url2_1 = "index.cfm";
DP> dqm__url2_2 = "index.cfm";
DP> dqm__url2_3 = "index.cfm";
DP> dqm__url2_4 = "index.cfm";
DP> dqm__url2_5 = "index.cfm";
DP> dqm__url2_6 = "index.cfm";
DP> ....
DP> </script>
DP> What I need is like this:
DP> <script language="JavaScript1.2">
DP> dqm__subdesc2_0 = "Home" ; //This is a fixed menu
DP> <cfoutput query="menu">
DP> dqm__subdesc#Num#_#sub# = "#pagetitle#";
DP> </cfoutput>
DP> dqm__url2_0 = "index.cfm"; //This is a fixed item
DP> <cfoutput query="menu">
DP> dqm__url#Num#_#sub# = "#url#";
DP> </cfoutput>
DP> ....
DP> </script>
DP> The problem I am finding is calculating #Num# and #sub# which need to
DP> follow exactly otherwise the javascript will break. Does anyone know of a
DP> way to solve this?
DP> Cheers
DP> Dave
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]