RE: picking up form variables on the action page??

2000-08-24 Thread Clint Tillerson

If no form variables are passed, then form.fieldnames will not be 
defined.  IsDefined('form.fieldnames')  = False

If a checkbox exists in a form and is not checked when the form is 
processed, then the checkbox variable will not be defined.
IsDefined('form.CheckboxVariableName')  = False

As for a textbox with no value entered, the variable will be defined 
but will have a value of "".
IsDefined('form.TextboxVariableName')  = True
TextBoxVariableName = ""



-

 If it's a textbox, and there's no value, then the 
 FORM.FieldName won't be
 passed. (Unless I have initialized it with a CFPARAM).

I'm sure that's not true - aren't your mistaking it with checkboxes?

If a value or string is not entered into a checkbox then the fieldname
is still passed - its just passed with a value of "" - ie nothing
ubscribe' in the body.

Clint R. Tillerson
Meteorologist/Programmer
Pacific Environmental Services, Inc.
5001 South Miami Blvd.
PO Box 12077
RTP, NC  27709
(919) 941-0333
Fax: (919) 941-0234

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: OnRequestEnd.cfm

2000-08-22 Thread Clint Tillerson

Could someone offer a brief explanation regarding what 
OnRequestEnd.cfm is used for?  I've never heard of this one.

Does it process after the requested cfm template processes as the 
name might suggest?

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Hidden Fields Problem

2000-08-22 Thread Clint Tillerson

Here's the problem:

missing quotation mark at the end of "#Form.cust_name#


*INPUT TYPE="hidden" NAME="cust_name" 
VALUE="#Form.cust_name# 
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Back and Single Select Form Fields

2000-08-18 Thread Clint Tillerson

Hello all,

Here is an issue I'm struggling with. Perhaps someone can shed 
some light or at least confirm I'm stuck with this behavior so I can 
move on.

Background:
A form is built dynamically step by step based on the user input. It 
consists of several single value and multi value select lists. Using 
javascript, onChange="submit()", the form submits automatically 
when the user makes a selection in a single select list. The form is 
recursive and "grows" displaying additional input fields beneath the 
previous inputs. At any time, the user can change a previous input 
above and the form will re-submit and reset the form to display the 
appropriate inputs down to the point the change was made. 

Problem:
If the user changes the input in a single select list, the form 
resubmits. If then, the user hits the back button, the most recent 
value the user chose in a single value select list is shown onscreen 
as the selected (highlighted) list item, rather than the previously 
selected item (the selected item you're going back to). If you view 
the source, the correct value is marked selected but the browser 
doesn't display it correctly. If there happened to be a multiselect 
list or filled text box on the previous screen (the screen you're 
going back to), any previously selected values display properly as 
well as the data entered in the text box. So the problem seems to 
be isolated to the single select lists. (Does this make sense?  I 
know it sounds confusing!)

I know I can make the page expire so users have to hit refresh 
when they go "Back", but I would prefer users be able to use the 
back button and see their last selections since this is what they 
expect. I know some of the older browsers would not hold these 
values at all, and the form would display blank or with defaults, but 
the newer ones do hold the values. This behavior is the same in 
both Netscape 4.7 and IE 5.5.  

Any thoughts?

Thanks in advance for your comments!! 

Clint R. Tillerson
Meteorologist/Programmer
Pacific Environmental Services, Inc.
5001 South Miami Blvd.
PO Box 12077
RTP, NC  27709
(919) 941-0333
Fax: (919) 941-0234

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: getting speed of verity search

2000-08-18 Thread Clint Tillerson

Is this the type of thing you're looking for?

Put this before the search:
CFSET tickBegin = GetTickCount()

Put this after the search:
CFSET tickEnd = GetTickCount()


Then, this will convert the time to seconds:
CFSET searchTimeSec = (tickEnd - tickBegin)/1000

This will convert the time to minutes:
CFSET searchTimeMin = ((tickEnd - tickBegin)/1000)/60

Then output whichever one you wish to see:
cfoutput#searchTimeSec#/cfoutput

Clint R. Tillerson
Meteorologist/Programmer
Pacific Environmental Services, Inc.
5001 South Miami Blvd.
PO Box 12077
RTP, NC  27709
(919) 941-0333
Fax: (919) 941-0234

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.