Forums
This topic is locked
Error using Yaromat's form validator with DWMX
Posted 26 Feb 2003 17:35:13
1
has voted
26 Feb 2003 17:35:13 Peter Filias posted:
I am trying to use Yaromat's form validator with Dreamweaver MX andCold Fusion 5 server.
I want to check a date field and have it fall within the mm/dd/yyyy
format.
However, the code that Yaromat's extension gives me causes my page to
load with an error:
Just in time compilation error
Invalid parser construct found on line 438 at position 410. ColdFusion
was looking at the following text:
2
Invalid expression format. The usual cause is an error in the
expression structure.
The last successfully parsed CFML construct was dynamic text (a CFML
expression) occupying document position (438:120) to (438:165).
The reason: onBlur="YY_checkform('po','Timeframe','^\([0-9][0-9]\)\/\([0-9][0-9]\)\/\([0-9]{4}\)$#2#1#3','3','Field
\'Timeframe\' is not valid.');return document.MM_returnValue"
value="#Timeframe_Value#" size=11 maxLength="16"
Cold Fusion 5 is getting hung up on the #2#1#3. As a test, I made it
##2##1##3. The page loaded up with no problem, but when I blurred away
from the date box, it tells me the field is not valid, no matter if
the date is in the proper format or not.
Can someone tell me why it's not working the way Yaromat has it coded?
And what can I do to make it work for me?