See my other post on this cause you can do this in cfscript.
userData = {
username='user', password='password', firstName='Andrew',
lastName='Scott',
roles=[ 'ColdFusion Developer', 'Flex Developer', 'Grails Developer',
'JavaScript Developer']
};
The only difference between this an ECMA Script is that Adobe refused to
allow the colon, and instead has forced us to use the equal sign instead.
But the semi-colons are not needed as you originally reported, just on the
outside of the declaration as I have shown above.
I am just not sure why Sean has it inside the struct literal.
-----Original Message-----
From: Alan Williamson [mailto:[email protected]]
Sent: Monday, 30 November 2009 9:23 PM
To: Open BlueDragon
Subject: [OpenBD] Re: FW/1 and OpenBD 1.2
right ... so my original statement stands then ... the CFML literal
syntax is __NOT__ compatiable with Javascript's ?
This is not legal Javascript:
<script>
var x = {
b = "d";
c = "c";
};
</script>
but from what i am beginning to learn, it is legal CFSCRIPT. Correct?
Is this how ActionScript declares variables? I could see an argument
(a very thin one) to make CFML literals more ActionScript and less
Javascript.
On Nov 30, 10:15 am, "Andrew Scott" <[email protected]> wrote:
> Oh ok, yeah same just uses ='s instead of colon.
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en
!! save a network - please trim replies before posting !!
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en
!! save a network - please trim replies before posting !!