Return-Path: Delivered-To: apmail-perl-asp-archive@perl.apache.org Received: (qmail 72950 invoked by uid 500); 7 Aug 2003 20:37:21 -0000 Mailing-List: contact asp-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list asp@perl.apache.org Received: (qmail 72937 invoked from network); 7 Aug 2003 20:37:21 -0000 Received: from 12-232-28-27.client.attbi.com (HELO adsl-gte-la-216-86-196-126.mminternet.com) (12.232.28.27) by daedalus.apache.org with SMTP; 7 Aug 2003 20:37:21 -0000 Received: from chamas.com (by adsl-gte-la-216-86-196-126.mminternet.com (8.11.6/8.11.6) with ESMTP id h77KbPb05274; Thu, 7 Aug 2003 13:37:25 -0700 Message-ID: <3F32B885.70903@chamas.com> Date: Thu, 07 Aug 2003 13:37:25 -0700 From: Josh Chamas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Lilley CC: asp@perl.apache.org Subject: Re: Large Select Box Selection Error References: <3F32AEA0.9020807@healthapps.com> <3F32B22D.3000007@chamas.com> <3F32B813.5070304@healthapps.com> In-Reply-To: <3F32B813.5070304@healthapps.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Steve Lilley wrote: > Here are my summarized script results. I have no idea what the "te" is. > The more x's I put in the fewer test select box results I get. If I put > in 7 x's the loop runs to 164. but does not print the value. > > The odd thing is that in IE 6 will make it to 901, Mozilla makes it to > 163 and lynx it makes it to 809. > Would you send me privately the output you get from "View Source" for both scripts under Mozilla? Is the "View Source" output different vs. IE or just the rendering of the source? --Josh > Form Results > ------------------------------------- > test = ARRAY(0x87184ac) > 1. 1 > 2. 2 > 3. 3 > ... > 161. 161 > 162. 162 > 163. 163 > te = > sx = xxxxxxxxxx > > Josh Chamas wrote: > >> What do you mean it craps out? I have written select boxes in >> Apache::ASP >> that have had 5000+ entries in them, so I know it can do it, but would >> like to know what kind of problem you are experiencing in particular. >> Also, does the problem manifest cross browser, or is this particular >> to IE or Mozilla? >> >> --Josh >> >> Steve Lilley wrote: >> >>> One of my applications has a select box which can get very large, >>> however I have found that the Apache::ASP does not handle it >>> particularly well. I have tested it with the following two scripts. >>> The asp version craps out at about 165 while the CGI handles at least >>> 1000 everytime. I have the file upload max set well beyond 165. >>> >>> Here are the test scripts. >>> >>> #!/usr/bin/perl /usr/bin/asp-perl >>> # first the large select box form >>> >>>
>>> >>> >>> >>>
>>> >>> #!/usr/bin/perl /usr/bin/asp-perl >>> # the asp dump of the values >>> <% >>> my $fh = $Request->Form(); >>> my $p=1; >>> %> >>> Form Results
>>> -------------------------------------
>>> <%foreach my $key (keys %{$fh}) {%> >>> <%=$key . ' = '. $fh->{$key} . '
'%> >>> <%if ($fh->{$key} =~ 'ARRAY') { >>> foreach my $i (@{$fh->{$key}}) {%> >>> <%=$p++%>.   <%= $i %>
>>> <%} $p=1;%> >>> <%}%> >>> <%}%> >>>
>>> >>> >>> #!/usr/bin/perl >>> # the CGI dump of the values >>> use CGI; >>> >>> my $cgi = new CGI; >>> >>> print $cgi->header; >>> print 'QueryString Results
'; >>> >>> my @values = $cgi->param('test'); >>> foreach my $key (@values) { >>> print $key . '
'; >>> } >>> >>> Any help will be greatly appreciated. >>> >>> Steve >>> >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org For additional commands, e-mail: asp-help@perl.apache.org