>- see footer for list info -< Have you tried using lsdateformat() and setlocale()?
On 05/01/06, Lee Fortnam <[EMAIL PROTECTED]> wrote: > > >- see footer for list info -< > If I turn preservedata to false and format it myself it works fine, if I > leave the formatting data in and turn preservedate on it starts swapping > them again! > > Lee Fortnam > [EMAIL PROTECTED] > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Swingewood > Sent: 05 January 2006 13:26 > To: [email protected] > Subject: RE: [CF-Dev] Datefield in CF Flash forms > > >- see footer for list info -< > Hi. > > Im pretty sure this is something to do with ODBCDatetime. I think maybe > you > need to get the date and format it prior to populating the box on the form > if an error occours. I had a nightmare with a similar thing (not using > flash > forms) on an application I did before xmas. > > Regards - Paul > > >From: "Lee Fortnam" <[EMAIL PROTECTED]> > >Reply-To: Coldfusion Development <[email protected]> > >To: "'Coldfusion Development'" <[email protected]> > >Subject: [CF-Dev] Datefield in CF Flash forms > >Date: Thu, 5 Jan 2006 12:33:25 -0000 > > > > >- see footer for list info -< > >Hi All, > > > >Looks like CF Forms are coming in for a bit of discussion, I am also > >having a problem at the moment using the datefield element. > > > >I am using a flash form to submit 3 pieces of info, a mobile number, a > >date and a time using the following elements, the problem I am having > >is that the server does some validation on the mobile number such as > >length and international format etc. If this fails it returns back to > >the form with appropriate messages etc. The issue is the DD and the MM > >are being reversed each time the form comes back. I have checked the > >backend scripts and nothing is being done to the attributes.Date var. > > > >If anyone has any ideas, would be much appreciated. > > > ><cfform name="Setup" format="Flash" skin="haloOrange" width="400" > >height="350" action="#request.myself#ap.setup_submission" > >preservedata="true" timeout="120" style="indicatorGap:30;"> <cfinput > >name="mobile" type="text" label="Mobile" required="yes" size="10" > >tooltip="something" message="something"> <cfinput type="dateField" > >name="Date" label="Date" width="100" > >required="yes" message="something" mask="DD/MM/YYYY"> <cfselect > >type="text" name="Time" label="Time" width="100" required="yes" > >multiple="no" message="something"> > > <option value=" ">Time?</option> > > <cfloop from="0" to="23" step="1" index="hour"> > > <cfloop from="0" to="55" step="15" index="min"> > > <cfif #LEN(hour)# EQ "1"> > > <cfset hour = "0" & #hour#> > > </cfif> > > <cfif #LEN(min)# EQ "1"> > > <cfset min = "0" & #min#> > > </cfif> > ><cfoutput> > > <cfif (IsDefined("request.error_fields") > IS > >TRUE) AND (#LEFT(attributes.Time,2)# EQ #hour#) AND > >(#RIGHT(attributes.Time,2)# EQ #min#)> > > <OPTION VALUE="#hour#:#min#" > >selected>#hour#:#min#</OPTION> > > <cfelse> > > <OPTION > >VALUE="#hour#:#min#">#hour#:#min#</OPTION> > > </cfif> > > </cfoutput> > > </cfloop> > > </cfloop> > ></cfselect> > ></cfform> > > > >Regards, > > > >Lee Fortnam > >[EMAIL PROTECTED] > > > >_______________________________________________ > > > >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 > >-< > > > _______________________________________________ > > 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 > >-< > > _______________________________________________ > > 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 > -< > -- Niklas Richardson Prismix Ltd UK based Flex and ColdFusion Specialists _______________________________________________ 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 -<
