<cfwddx action="CFML2JS" ...
It is pretty easy, but I like to do it myself, because I'm a control freak I
guess. Have you tried removing linebreaks in the array loop?

jon
----- Original Message -----
From: "Scott Weikert" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 30, 2002 6:30 PM
Subject: Using CF to populate JS variables efficiently


> Hey gang.
>
> Working on a little side project, that is very JS-heavy - do some reads
from
> a DB, create and populate several Javascript arrays based on the DB
queries
> (using CFLOOP, generally), so that the page, once loaded, doesn't need to
go
> back to the server for more data.
>
> I'm trying to work up a better way of doing this. Right now, the page (and
> it's not even nearly done, just the basics) is around 2100 lines long in
the
> end (page source), and a large chunk of that is array population lines
(i.e.
> "arrayname[3][7] = 1;").
>
> I seem to recall seeing a chapter on one CF book some time back on CF and
> JS - going back and forth between them - but for the life of me I can't
find
> such info in Forta's books (either the new editions or the previous
> editions).
>
> Any thoughts/recommendations?
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to