I am looping through an array to create a JavaScript fly-out menu.
The JavaScript syntax goes like:
['Display', 'link', 'css settings'],
['Display', 'link', 'css settings'
['Display', 'link', 'css settings'
['Display', 'link', 'css settings'],
],
],
['Display', 'link', 'css settings']
I am looping through and creating it like this, which basically closes
the navigation item the next time around:
<cfloop>
<cfif OldLevel EQ NewLevel>],</cfif>
<cfif OldLevel LT NewLevel>
<cfset LevelDiff = NewLevel - OldLevel + 1>
<cfloop index="i" from="1" to="#LevelDiff#">],</cfloop>
</cfif>
['Display', 'link', 'css settings'
</cfloop>
],
The problem I am having is that the loop at <cfloop index="i" from="1"
to="#LevelDiff#">],</cfloop> is creating a special character, I
believe a carriage return, that is giving a syntax error.
Any ideas around this?
Chad
who wishes someone would return his carriage to him
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/