Mailing List Archive

textarea "arrays" initialize incorrectly
Here's the code:

[.-
$fdat{"WHATEVER_1"} = "a";
$fdat{"WHATEVER_2"} = "b";
$fdat{"WHATEVER_3"} = "c";
$fdat{"WHATEVER_4"} = "d";
$fdat{"WHATEVER_5"} = "e";
$fdat{"WHATEVER_6"} = "f";
$fdat{"WHATEVER_7"} = "g";
$fdat{"WHATEVER_8"} = "h";
-]
<html>
<head>
</head>
<body>

<form>

[$ foreach $i (1 .. 8) $]
<textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
wrap=soft></textarea><br>
[$ endforeach $]

<textarea name="WHATEVER_5" cols=40 rows=4 wrap=soft></textarea><br>

</form>

</body>
</html>


Here's the very odd result:
http://www.merit.edu/~tmwhite/textarea.epl


Can anyone explain why? Or if there is a fix? (Other than manually
initializing each textarea field.)

Thanks.
--Todd White

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: textarea "arrays" initialize incorrectly [ In reply to ]
I tried the code below in Embperl 1.3, and it works as expected (i.e.,
each textarea has only one character).

Is there something you aren't telling us?

-----Original Message-----
From: Todd White [mailto:tmwhite@merit.edu]
Sent: Wednesday, March 19, 2008 1:48 PM
To: embperl@perl.apache.org
Subject: textarea "arrays" initialize incorrectly

Here's the code:

[.-
$fdat{"WHATEVER_1"} = "a";
$fdat{"WHATEVER_2"} = "b";
$fdat{"WHATEVER_3"} = "c";
$fdat{"WHATEVER_4"} = "d";
$fdat{"WHATEVER_5"} = "e";
$fdat{"WHATEVER_6"} = "f";
$fdat{"WHATEVER_7"} = "g";
$fdat{"WHATEVER_8"} = "h";
-]
<html>
<head>
</head>
<body>

<form>

[$ foreach $i (1 .. 8) $]
<textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
wrap=soft></textarea><br> [$ endforeach $]

<textarea name="WHATEVER_5" cols=40 rows=4 wrap=soft></textarea><br>

</form>

</body>
</html>


Here's the very odd result:
http://www.merit.edu/~tmwhite/textarea.epl


Can anyone explain why? Or if there is a fix? (Other than manually
initializing each textarea field.)

Thanks.
--Todd White

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




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: textarea "arrays" initialize incorrectly [ In reply to ]
The only thing I didn't share was...

Apache/2.2.6 (Unix)
mod_ssl/2.2.6
PHP/5.2.4
mod_perl/2.0.2
Perl/v5.8.8
Embperl 2.2.0

Now you have the rest of the story.

--Todd


On Wed, 19 Mar 2008, Tom Briles wrote:

> I tried the code below in Embperl 1.3, and it works as expected (i.e.,
> each textarea has only one character).
>
> Is there something you aren't telling us?
>
> -----Original Message-----
> From: Todd White [mailto:tmwhite@merit.edu]
> Sent: Wednesday, March 19, 2008 1:48 PM
> To: embperl@perl.apache.org
> Subject: textarea "arrays" initialize incorrectly
>
> Here's the code:
>
> [.-
> $fdat{"WHATEVER_1"} = "a";
> $fdat{"WHATEVER_2"} = "b";
> $fdat{"WHATEVER_3"} = "c";
> $fdat{"WHATEVER_4"} = "d";
> $fdat{"WHATEVER_5"} = "e";
> $fdat{"WHATEVER_6"} = "f";
> $fdat{"WHATEVER_7"} = "g";
> $fdat{"WHATEVER_8"} = "h";
> -]
> <html>
> <head>
> </head>
> <body>
>
> <form>
>
> [$ foreach $i (1 .. 8) $]
> <textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
> wrap=soft></textarea><br> [$ endforeach $]
>
> <textarea name="WHATEVER_5" cols=40 rows=4 wrap=soft></textarea><br>
>
> </form>
>
> </body>
> </html>
>
>
> Here's the very odd result:
> http://www.merit.edu/~tmwhite/textarea.epl
>
>
> Can anyone explain why? Or if there is a fix? (Other than manually
> initializing each textarea field.)
>
> Thanks.
> --Todd White
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: textarea "arrays" initialize incorrectly [ In reply to ]
Todd White schrieb:
>
> Here's the very odd result:
> http://www.merit.edu/~tmwhite/textarea.epl
>
The same for me with Embperl 2.2.0.

<textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
wrap=soft>[+ $fdat{'WHATEVER_'.$i} +]</textarea><br> [$ endforeach $]

is a workaround.

I don't have a current version at hands, but you may want to upgrade.


--
mit freundlichem Gruß,

Frank Wesemann
Fotofinder GmbH USt-IdNr. DE812854514
Software Entwicklung Web: http://www.fotofinder.net/
Potsdamer Str. 96 Tel: +49 30 25 79 28 90
10785 Berlin Fax: +49 30 25 79 28 999

Sitz: Berlin
Amtsgericht Berlin Charlottenburg (HRB 73099)
Geschäftsführer: Ali Paczensky




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: textarea "arrays" initialize incorrectly [ In reply to ]
Yeah... that's the workaround I am using, but I was wondering if I could
avoid using the workaround.


On Wed, 19 Mar 2008, Frank Wesemann wrote:

> Todd White schrieb:
> >
> > Here's the very odd result:
> > http://www.merit.edu/~tmwhite/textarea.epl
> >
> The same for me with Embperl 2.2.0.
>
> <textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
> wrap=soft>[+ $fdat{'WHATEVER_'.$i} +]</textarea><br> [$ endforeach $]
>
> is a workaround.
>
> I don't have a current version at hands, but you may want to upgrade.
>
>
> --
> mit freundlichem Gruß,
>
> Frank Wesemann
> Fotofinder GmbH USt-IdNr. DE812854514
> Software Entwicklung Web: http://www.fotofinder.net/
> Potsdamer Str. 96 Tel: +49 30 25 79 28 90
> 10785 Berlin Fax: +49 30 25 79 28 999
>
> Sitz: Berlin
> Amtsgericht Berlin Charlottenburg (HRB 73099)
> Geschäftsführer: Ali Paczensky
>
>
>
>
RE: textarea "arrays" initialize incorrectly [ In reply to ]
Ah, perhaps it's an Embperl 2.X issue then. We've had lots of those...
;)

-----Original Message-----
From: Todd White [mailto:tmwhite@merit.edu]
Sent: Wednesday, March 19, 2008 2:06 PM
To: Tom Briles
Cc: embperl@perl.apache.org
Subject: RE: textarea "arrays" initialize incorrectly

The only thing I didn't share was...

Apache/2.2.6 (Unix)
mod_ssl/2.2.6
PHP/5.2.4
mod_perl/2.0.2
Perl/v5.8.8
Embperl 2.2.0

Now you have the rest of the story.

--Todd


On Wed, 19 Mar 2008, Tom Briles wrote:

> I tried the code below in Embperl 1.3, and it works as expected (i.e.,

> each textarea has only one character).
>
> Is there something you aren't telling us?
>
> -----Original Message-----
> From: Todd White [mailto:tmwhite@merit.edu]
> Sent: Wednesday, March 19, 2008 1:48 PM
> To: embperl@perl.apache.org
> Subject: textarea "arrays" initialize incorrectly
>
> Here's the code:
>
> [.-
> $fdat{"WHATEVER_1"} = "a";
> $fdat{"WHATEVER_2"} = "b";
> $fdat{"WHATEVER_3"} = "c";
> $fdat{"WHATEVER_4"} = "d";
> $fdat{"WHATEVER_5"} = "e";
> $fdat{"WHATEVER_6"} = "f";
> $fdat{"WHATEVER_7"} = "g";
> $fdat{"WHATEVER_8"} = "h";
> -]
> <html>
> <head>
> </head>
> <body>
>
> <form>
>
> [$ foreach $i (1 .. 8) $]
> <textarea name="WHATEVER_[+ $i +]" cols=40 rows=4
> wrap=soft></textarea><br> [$ endforeach $]
>
> <textarea name="WHATEVER_5" cols=40 rows=4 wrap=soft></textarea><br>
>
> </form>
>
> </body>
> </html>
>
>
> Here's the very odd result:
> http://www.merit.edu/~tmwhite/textarea.epl
>
>
> Can anyone explain why? Or if there is a fix? (Other than manually
> initializing each textarea field.)
>
> Thanks.
> --Todd White
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
>



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