CF Struct keys are always upper-case; from what I've read and been told on
Allaire's forums, there's no way around this. This is especially problematic
when you want to de-serialize your XML into a CF struct but the element
names don't get preserved.

Kinda sucks.

Rob

-----Original Message-----
From: Marc Gadsdon [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 19, 2001 6:29 AM
To: [EMAIL PROTECTED]
Subject: RE: [cf-xml] OT? - WDDX capitalises my variables

Greg,

Thanks for the tip - that works a treat - however it doesn't solve our
problem:

We have to create a structure prior to serialising into WDDX. It would
appear that the structure's keys are capitalised! Do you know of a way of
stopping this by any chance?

>Not sure about you, but mine goes to all lowercase.

Yes same here.

Thanks

Marc Gadsdon
http://www.in-tuition.co.uk

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gregory Narain
Sent: 19 October 2001 00:38
To: [EMAIL PROTECTED]
Subject: Re: [cf-xml] OT? - WDDX capitalises my variables


Marc,

There is a preserveVarCase property on the WDDX recordset.

If you never want it to revert, then edit your wddx.js file.

If you want to disable it every now and again:

var wddx = new WddxRecordset();
wddx.preserveVarCase = true;


Not sure about you, but mine goes to all lowercase.

HTH,
Greg



-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

Reply via email to