Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
rogerjud #1
LSIsDate problem
Could somebody exlpain me how I can validate a multilingual form with
LSIsDate()? For this I create a test script by setting the current local with
SetLocal() from the selectbox and further validate with the LSIsDate(). This
application should validate the date reference the actual local settings. In
case I enter a german format date (as expample 24.12.2004) then show up the
'invalid date' with 'SetLocal('Englich (US)')'. It would be grate if you could
propose a solution. Thanks SCRIPT: <cfif cgi.REQUEST_METHOD EQ 'POST'>
<cfif FORM.select eq 'de'> <cfoutput>is de</cfoutput><br> <cfset oldlocale
= SetLocale('German (Standard)')> <cfelse> <cfoutput>is en</cfoutput><br>
<cfset oldlocale = SetLocale('English (US)')> </cfif> <cfoutput>actual
input: #FORM.datum#</cfoutput><br> <cfoutput>actual locale:
#GetLocale()#</cfoutput><br><br> <cfif LSIsDate(FORM.datum)> <cfoutput>is
a valid date</cfoutput><br> <cfelse> <cfoutput>is a invalid
date</cfoutput><br> </cfif> </cfif> <html> <head> <meta
http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
<title>Unbenanntes Dokument</title> </head> <body> <form action='index.cfm'
method='post' name='form' id='form'> <p> <select name='select'>
<option value='de'>german</option> <option value='en'>english</option>
</select> </p> <p> <input name='datum' type='text' id='datum' size='50'
maxlength='50'> </p> <p> <input type='submit' name='Submit'
value='submit'> </p> </form> </body> </html>
rogerjud Guest
-
contribute problem - access denied file may not existpermission problem
Recieving the following error message - "access denied file may not exist , or there could be a permission problem" this happened this morning ,... -
Problem playing Quicktime thru .DCR embedded in HTML - pathreferencing problem?
Greetings earthlings and Director heads. Here's the problem: created an HTML file containing shockwave (dcr) movie that calls quicktime movies in... -
Uploading problem = weird warning (was: access denied problem.....)
Hi, I had a problem where my upload form was not working on our production server but was working on two other servers, after checking the... -
#21611 [Opn]: Problem with version_compare() (Was: Problem with pear cli and release numbers)
ID: 21611 Updated by: et@php.net -Summary: Problem with pear cli and release numbers Reported By: jan at horde... -
Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I... -
OldCFer #2
Re: LSIsDate problem
Whet version are you running? When I run this in 6.1, "24.12.2004" is invalid in
English Locale . In 7.0 it's valid.
OldCFer Guest
-
rogerjud #3
Re: LSIsDate problem
Hi Larry
my CF is a mx7. You think i try the right way to validate for a proper date in the correlatively locale?
You think that is a bug in mx7?
rogerjud Guest
-
OldCFer #4
Re: LSIsDate problem
It looks like you are doing it right, and the two versions apparently arent working the same.
OldCFer Guest



Reply With Quote

