beautiful use of JSStringFormat() Isaac!  You know I fought with errant '
and " in my JS for like a year and a half before discovering this function.
Now, doesn't the below creae an array of 3d arrays?  A true 3D array is nto
available like CF, IIRC.  Anyhoo, I've used the below approach also


var sys = new Array;
  <cfoutput query="rates" group="billsystem">
   sys['#JSStringFormat(rates.billsystem)#'] = new Array;
   <cfoutput group="rateplan">


sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#'
] = new Array
    <cfoutput group="descr">


sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#'
]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#';
    </cfoutput>
   </cfoutput>
  </cfoutput>


Doug

-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 4:05 PM
To: CF-Talk
Subject: Re: CF and JS question

_javascript_ arrays are declared a bit differently than CF arrays.

try this:

var taskArray = new Array();
<cfloop index="x" from="1"
  to="#alltasks.recordcount#">
  taskArray[#x-1#] = new Array(
'#jsstringformat(alltasks.task)#',
'#jsstringformat(alltasks.c_taskid)#',
'#jsstringformat(alltasks.c_activityid)#');
</cfloop>

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to