Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jas5on #1
tweaking cf validation
i want to edit the js validation for html cfforms. can anyone tell me where
the file that contains the js is located?
i need to comment out the line that puts focus on the errored field. when
using xml forms, i was able to go to the _cfformvalidation.xls file and edit
the js that is used by cf. i thought that cfform.js would be the file i
needed but it doesn't have the js function i need to edit.
thanks
jas5on Guest
-
query tweaking
Getting an error - Mike havent put in the extra column yet - just test running at the moment. Sql at the bottom. Language: Table... -
Tweaking 'Create a New Php Script' file
File > New > Create New PHP Script generates the same basic code everytime. How can I add a new line of code to that file so that everytime I create... -
Tweaking cfchart
I am trying to construct a scatter chart where points are displayed from 0.85 to 1.15, I also would like to control the distance between the points... -
tweaking acks and pings
dslreports.com tweaks page recommends that I turn on "selective acks", but gives only the windows method for doing so. Also, my machine is... -
tweaking digital photo
I have a digital camera which i would like to take a photo of different rooms in my house,and then with the use of a program change the floor color... -
TA-Selene #2
Re: tweaking cf validation
<web root>/cfide/scripts/
Its called cfform.js.
TA-Selene Guest
-
jas5on #3
Re: tweaking cf validation
well i looked thru cfform.js and didn't locate the routine i need. cf writes
the following js at the end of the validation function:
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js
focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }
}
i need to comment out the last two lines so that it doesn't move focus to the
fields that failed validation. this function is not in cfform. do you know
where i could find it?
jas5on Guest



Reply With Quote

