You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jonny Cavell <jc...@iii.co.uk> on 2001/05/02 16:34:05 UTC

2 more problems with embperl2

Hi Gerald,

Thanks for fixing the other problems so quickly. Here are another couple for
you:

(1)

<script>
for (var j = 0; j < select2loc[i].length; j++){
....

Is getting turned into:

<script>
for (var j = 0; j <select 2loc[i].length; j++){
...


(2)

[$ foreach $formname ('inky','blinky','slinky','clyde') $]
 <form>
 <input type="hidden" name="formname" value="[+ $formname +]">
 <input type="text" name="first" value="one">
 <input type="hidden" name="tenth" value="ten">
 [$ hidden $]
 </form>
[$ endforeach $]

In Embperl 1.3 you get one hidden value for each entry in fdat not already
in the form
*But* in embperl2 you get four hidden values for each entry in fdat not
already in the form (i.e. it's multiplied by the number of forms in the
loop.

Cheers

Jonny

http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.

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


Re: 2 more problems with embperl2

Posted by Gerald Richter <ri...@ecos.de>.
>
> Thanks for fixing the other problems so quickly. Here are another couple
for
> you:
>

fixed in the CVS version

Gerald


> (1)
>
> <script>
> for (var j = 0; j < select2loc[i].length; j++){
> ....
>
> Is getting turned into:
>
> <script>
> for (var j = 0; j <select 2loc[i].length; j++){
> ...
>
>
> (2)
>
> [$ foreach $formname ('inky','blinky','slinky','clyde') $]
>  <form>
>  <input type="hidden" name="formname" value="[+ $formname +]">
>  <input type="text" name="first" value="one">
>  <input type="hidden" name="tenth" value="ten">
>  [$ hidden $]
>  </form>
> [$ endforeach $]
>
> In Embperl 1.3 you get one hidden value for each entry in fdat not already
> in the form
> *But* in embperl2 you get four hidden values for each entry in fdat not
> already in the form (i.e. it's multiplied by the number of forms in the
> loop.
>
> Cheers
>
> Jonny
>
> http://www.iii.co.uk
> Interactive Investor International is a leading UK Internet personal
> finance service that provides individuals with the capability to identify,
> compare, monitor and buy online a number of financial products and
services.
>
> Interactive Investor Trading Limited, a subsidiary of Interactive Investor
> International plc, is regulated by the SFA.
>
>


-------------------------------------------------------------
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