IF they have _javascript_ enabled you can do something like this:
<input type="Button" value="Process Request" class="SearchSubmit"
== 'Process Request') this.form.submit(); this.value
= 'Please Wait.';">
Then for the various fields do something like the following:
<input type="text" name="txtStreetNumber" size="10" tabindex="2"
maxlength="10"
<cfif (datediff(your two dates - then and now) gte 1>
<!--- can't remember exact syntax here ---> disabled
</cfif>
>
and from irt.org - http://developer.irt.org/script/1179.htm
<script language="_javascript_"><!--
if (document.layers) document.captureEvents(Event.KEYPRESS);
window.> function keyhandler(e) {
var event = e ? e : window.event;
if (event.keyCode == 13) return false;
}
//--></script>
<form name="myForm" return false;">
<input type="text" name="field1" > <input type="text" name="field2" > </form>
hth,
larry
At 10:27 AM 12/15/2003, you wrote:
>I need to, depending on a set of parameters, to disable a form so that a
>user can not submit it. But, unless I want to make two versions of a page,
>I would like to still display the form controls with the current data in the
>fields. The idea is that until a certain deadline is past, users can view
>and update the information about an event. After the deadline, they can no
>longer update, but they will still have the need to view the event's data.
>
>I'm checking the date on the sever, so that they can't actually change the
>data, but I would rather do this before this. I can remove the submit
>button, but that doesn't prevent a keyboard [ENTER] submit does it?
>
>It's a very blurry Monday, does that make sense? And if so, anybody have any
>simple ideas.
>
>Thanks]
>
>--------------
>Ian Skinner
>Web Programmer
>BloodSource
>www.BloodSource.org
>Sacramento, CA
>
>Confidentiality Notice: This message including any
>attachments is for the sole use of the intended
>recipient(s) and may contain confidential and privileged
>information. Any unauthorized review, use, disclosure or
>distribution is prohibited. If you are not the
>intended recipient, please contact the sender and
>delete any copies of this message.
>
>----------
>[
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
