You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jack Cushman <jc...@avatartechnology.com> on 2001/07/24 20:13:41 UTC

forms autofill with javascript

I have a problem with Embperl 1.3.1, with the following code:

<textarea name="itdesc" rows="3" cols="40"
	onKeyDown="if (this.value.length > 110) this.value =
this.value.substring(0, 110);"
	onKeyUp="if (this.value.length > 110) this.value = this.value.substring(0,
110);"
></textarea>

<textarea name="itdesc" rows="3" cols="40"></textarea>

The first textarea does not autofill, and the second one does. Is this a
bug? Has it been fixed in a later version?

Thanks,
--Jack Cushman


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: forms autofill with javascript

Posted by Gerald Richter <ri...@ecos.de>.
> I have a problem with Embperl 1.3.1, with the following code:
>
> <textarea name="itdesc" rows="3" cols="40"
> onKeyDown="if (this.value.length > 110) this.value =
> this.value.substring(0, 110);"
> onKeyUp="if (this.value.length > 110) this.value = this.value.substring(0,
> 110);"
> ></textarea>
>
> <textarea name="itdesc" rows="3" cols="40"></textarea>
>
> The first textarea does not autofill, and the second one does. Is this a
> bug? Has it been fixed in a later version?
>

It's not a bug, it's a simplification in the parser to make it faster, it
ignores the quotes and sees the greater then sign as end of the textarea
tag, so the textarea isn't empty and will not be autofilled.

Not quite sure if JavaSCript allows you to write &gt; instead of >, that
would make at least Embperl happy.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org