Limiting length of posts on a FrontPage discussion board

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello-

I have created a simple FrontPage discussion board for a church Website, and
I was wondering if there was a way to limit the length of posts that could be
made to this website (either with a character limit or line limit).

I'd appreciate any help on this issue.

Thanks!

Sarah
 
Hi Sarah,

There is script that will check the length of the input as it is typed into the field. The following code, from CandyPress eCommerce
(http://www.candypress.com), displays the length of the text entered whenever an key stroke is done.

<input type="text" name="ExtraCaption" value="<% =server.HTMLEncode(ExtraCaption & "") %>" onKeyDown="this.form[this.name +
'Count'].value = this.value.length" onKeyUp="this.form[this.name + 'Count'].value = this.value.length" size="77"><br>
Text Count:
<input type="text" name="ExtraCaptionCount" size="2" class="textCounter">

It would be very simple to take the above and add a check to limit the number of characters that my be entered.
 
can't the form field validation in FP be used with the Discussion board?
just enter the max characters in the appropriate field.

MD Websunlimited said:
Hi Sarah,

There is script that will check the length of the input as it is typed
into the field. The following code, from CandyPress eCommerce
(http://www.candypress.com), displays the length of the text entered
whenever an key stroke is done.

<input type="text" name="ExtraCaption" value="<%
=server.HTMLEncode(ExtraCaption & "") %>" onKeyDown="this.form[this.name +
'Count'].value = this.value.length" onKeyUp="this.form[this.name +
'Count'].value = this.value.length" size="77"><br>
Text Count:
<input type="text" name="ExtraCaptionCount" size="2"
class="textCounter">

It would be very simple to take the above and add a check to limit the
number of characters that my be entered.

--
Mike -- FrontPage MVP '97 - '02
http://www.websunlimited.com
FrontPage Add-in



adele1013 said:
Hello-

I have created a simple FrontPage discussion board for a church Website,
and
I was wondering if there was a way to limit the length of posts that
could be
made to this website (either with a character limit or line limit).

I'd appreciate any help on this issue.

Thanks!

Sarah
 

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

Back
Top