Re: Limits on text typed in fields

2002-11-14 Thread Richard Gaskin
[EMAIL PROTECTED] wrote:

> I am working on a program that requires users to type answers into fields,
> which are later sent to fields on another page that is printed. I need to
> limit the amount users can type into the fields, as opposed to the scrolling
> that occurs now (even with a rectangular field instead of a scrolling one),
> so that the answers will fit into the printed fields.


in the field script:

 on keydown
   if the number of chars of me > 100 then
  beep
   else
  pass keydown
   end if
end keydown


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Limits on text typed in fields

2002-11-14 Thread andu


--On Thursday, November 14, 2002 13:08:10 -0600 [EMAIL PROTECTED] 
wrote:

I am working on a program that requires users to type answers into fields,
which are later sent to fields on another page that is printed. I need to
limit the amount users can type into the fields, as opposed to the
scrolling that occurs now (even with a rectangular field instead of a
scrolling one), so that the answers will fit into the printed fields. I
can't for the life of me figure out how to do this.


I think the idea is to constantly compare (every key) the formattedHeight 
of the field with its actual height and "pass" any keys when the 2 are 
equal, or something like that.


Thanks in advance!

Kristen Billings
Geriatric Research, Education, and Clinical Center
VA Healthcare System, Pittsburgh
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard





Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Limits on text typed in fields

2002-11-14 Thread Kristen . Billings
I am working on a program that requires users to type answers into fields,
which are later sent to fields on another page that is printed. I need to
limit the amount users can type into the fields, as opposed to the scrolling
that occurs now (even with a rectangular field instead of a scrolling one),
so that the answers will fit into the printed fields. I can't for the life
of me figure out how to do this.

Thanks in advance!

Kristen Billings
Geriatric Research, Education, and Clinical Center
VA Healthcare System, Pittsburgh
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard