>- see footer for list info -<
Gary,

> Ah, I see a plan in that, Russ. If I run a local js page to
> convert my js array to wddx I can simply copy and paste that
> into my cfm script and it can convert that to both js+cf
> formats at runtime.

Probably already over and done now, but how about using JSON?  That way
you can use valid JavaScript  notation to define the array and parse it
to CF using something like CFJSON [1].

> <CFSET jsArray="[[[x,y,z],[1,2,3]],[etc]]">
> <CFSET cfArray=convertJSarray(jsArray)>

You can do exactly this: the JSON format is a subset of JavaScript so
jsondecode() works exactly like this!  Although I have just noticed that
I have to quote the numbers (e.g. ["1","2","3"]) or it treats them as
boolean values):

<cfset jsArray = '[[["x","y","z"],["1","2","3"]],["etc"]]'>
<cfset cfArray = jsondecode(jsArray)>
<cfdump var="#cfArray#">

HTH,

Tim.

[1] http://jehiah.com/projects/cfjson/


--
-------------------------------------------------------
Badpen Tech - CF and web-tech: http://tech.badpen.com/
-------------------------------------------------------
    RAWNET LTD - independent digital media agency
    "We are big, we are funny and we are clever!"
     New site launched at http://www.rawnet.com/
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to