List Info

Thread: Re: Re: Posting box




Re: Re: Posting box
country flaguser name
United States
2007-09-20 15:44:03

Something I forgot - Some browsers look for a close tag for the text
area, so put that in immediately after.

atthepeacock2004 wrote:
> Bless you, Auggy.
> Even Robert tried this, with no luck. You are a guru.
> Thank you so much for your time. I'll let you know how we do with
> all your help.
> Best regards,
> Acara
>
>
> --- In phpmychat%40yahoogroups.com">phpmychatyahoogroups.com, Auggy <philodox...> wrote:
&gt;
>>; Okay - what you're going to want to do is alter the input.php(3)
>>;
> file.
>
>>; Search the file for something that say "<input type=";text" name
>>;
> ="M&quot;
>
>>; ....> and change it. What I have is as follows:
>> <textarea name=";M" valign=&quot;baseline" rows=";3" cols=";55" VALUE=&quot;<?
&gt;>
> php
>
>>; echo(htmlspecialchars(stripslashes($ValM))); ?>";
>>; onKeyDown="limitText(this.form.M,this.form.countdown,500);"
>> onKeyUp=&quot;limitText(this.form.M,this.form.countdown,500);"
>>; onkeypress="ifEnter(this,event);&quot;>
&gt;> This gives me a fairly large textarea to work with. It also changes
>>;
> the
>
>>; character limit to 500 characters (the onKeyDown="limitText...part)
>>;
> and
>
>>; allows people to send a message by hitting enter (onkeypress). The
>>; character limit is strongly advised - Otherwise people can flood
>>;
> the
>
>>; chat unintentionally. Having said that, here's the javascript that
>>;
> goes
>
>>; along with it, which should be in the <head&gt; section of the file:
&gt;> <script language=&quot;javascript" type=";text/javascript";>
>;> function limitText(limitField, limitCount, limitNum) {
>&gt; if (limitField.value.length > limitNum) {
>&gt; limitField.value = limitField.value.substring(0, limitNum);
>> } else {
>&gt; limitCount.value = limitNum - limitField.value.length;
>> }
>&gt; }
>&gt; </script>
>;>
>;>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )