Displaying characters left in Text box

J

Jacques

I added a Form in Frontpage 2003 and the input goes into an Access database.
I would like to add a script that displays in real time the number of
characters remaining in a Text box.
I found an example at
http://www.dynamicdrive.com/dynamicindex16/limitinput.htm but I can't
integrate it well in my page because their example speak of: <form
name="sampleform"> while in Frontpage, I don't see a form name, I see this
instead :
<form method="POST" action="--WEBBOT-SELF--" onSubmit="">.

Can you help ?
 
S

Steve Easton

Add the name to the opening form tag like this.
<form name="sampleform method="POST" action="--WEBBOT-SELF--" onSubmit="">.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
T

Thomas A. Rowe

If you are using FP Form File Validation, you will also not be able to use any 3rd party script
without some work, which thereafter you will not be able to manage the form field validation via FP.
So you need to consider how import this function really is to the users of your site, as with FP
form field validation you can limit the maximum amount of data that can be inserted.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
K

Kevin Spencer

Why don't you give the form a name?

<form name="sampleform" method="POST" action="--WEBBOT-SELF--" onSubmit="">

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
 
J

Jacques

Your solution worked.
But then I added some text box validation in Frontpage (by doublew clicking
on the text box) and now, if for example, there was : 20 characters left, the
20 doesn;'t decrease as I type in the text box.
Is there a way to have both things at the same time ?

Jacques
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top