Hi,

I have a DHTML menu system which I am trying to integrate into a CF app. I have certain items which are fixed and the rest will be driven from the db. I have discovered that the numbering needs to be consecutive and cannot have gaps. Here's a code snippet:

<script language="JavaScript1.2">
dqm__subdesc2_0 = "News Service" ;
dqm__subdesc2_1 = "Flame";
dqm__subdesc2_2 = "Diary";
dqm__subdesc2_3 = "Conference";
dqm__subdesc2_4 = "Media Office";
dqm__subdesc2_5 = "Grants & Funds";
dqm__subdesc2_6 = "Campaigns";
dqm__url2_0 = "index.cfm";
dqm__url2_1 = "index.cfm";
dqm__url2_2 = "index.cfm";
dqm__url2_3 = "index.cfm";
dqm__url2_4 = "index.cfm";
dqm__url2_5 = "index.cfm";
dqm__url2_6 = "index.cfm";
....
</script>

What I need is like this:

<script language="JavaScript1.2">
dqm__subdesc2_0 = "Home" ; //This is a fixed menu
<cfoutput query="menu">
dqm__subdesc#Num#_#sub# = "#pagetitle#";
</cfoutput>
dqm__url2_0 = "index.cfm"; //This is a fixed item
<cfoutput query="menu">
dqm__url#Num#_#sub# = "#url#";
</cfoutput>
....
</script>

The problem I am finding is calculating #Num# and #sub# which need to follow exactly otherwise the javascript will break. Does anyone know of a way to solve this?

Cheers

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]

Reply via email to