You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Sherwin Daganato <wi...@email.com.ph> on 2000/08/27 11:21:59 UTC
checkboxes in embperl
I was displaying rows of selection using checkboxes.
The problem is when there are too many selections (e.g. >100) to display,
my embperl page slows down.
I am planning to cut the selections into 25 rows per page. Users of this
page will just have to click next/previous button.
My questions are:
1. How will i know if there were selections checked in other pages?
2. How will i know if a user goes back to a certain page and unchecked
the previously checked selection.
3. Can %udat do this? How?
Re: RE: checkboxes in embperl
Posted by Gerald Richter <ri...@ecos.de>.
> BUT i'm just relying on one variable in all pages.
>
> <input name=xxx type=checkbox value=selection1>
> <input name=xxx type=checkbox value=selection2>
> <input name=xxx type=checkbox value=selection3>
>
> Upon submission, $fdat(xxx) will just be a tab delimited string of
> selection1, selection2, selection3, and others.
>
You may also use hidden variables to pass the data between pages. If you
really use the same variable name for all pages it will get a little tricky.
Maybe it's better to use different names and concat them together when
saving them.
Look at eg/x/neu.htm for an example that uses hidden fields
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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
Re: RE: checkboxes in embperl
Posted by Sherwin Daganato <wi...@email.com.ph>.
BUT i'm just relying on one variable in all pages.
<input name=xxx type=checkbox value=selection1>
<input name=xxx type=checkbox value=selection2>
<input name=xxx type=checkbox value=selection3>
Upon submission, $fdat(xxx) will just be a tab delimited string of
selection1, selection2, selection3, and others.
Thanks.
Sherwin
joelauer@rootlevel.com writes:
>1. You can use session variables to keep track of what they checked on
>previous pages. Or you can plop it into a db to keep track of it.
>
>2. If you store it in the db then you can just have it update the fields
>they went back to and updated. The same for session storage. Then you
>can
>have a wizard interface with a back and next buttons.
>
>3. %udat can do it and will do it. %udat is for storing session
>variables.
>%udat is a little tricky to setup, but its not that tough. Read all the
>docs on Apache::Session to see how to set it up. I happen to set it up by
>using MySQL and a sessions table and then setup everything in my Apache
>startup.pl script every time Apache boots up. There are also other ways
>to
>do it. You can use the filesystem, etc.
>
>-joe
>
>______________________________________________________
>joe lauer rootlevel
>product developer 743 beaubien, suite 300
>p.313.961.4407 x302 detroit, mi 48226
>f.313.961.4568 www.rootlevel.com
>
>-----Original Message-----
>From: Sherwin Daganato [mailto:win@email.com.ph]
>Sent: Sunday, August 27, 2000 5:22 AM
>To: embperl@perl.apache.org
>Subject: checkboxes in embperl
>
>
>I was displaying rows of selection using checkboxes.
>The problem is when there are too many selections (e.g. >100) to display,
>my embperl page slows down.
>
>I am planning to cut the selections into 25 rows per page. Users of this
>page will just have to click next/previous button.
>
>My questions are:
>1. How will i know if there were selections checked in other pages?
>2. How will i know if a user goes back to a certain page and unchecked
> the previously checked selection.
>3. Can %udat do this? How?
>
>
>
>
>
>---------------------------------------------------------------------
>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: checkboxes in embperl
Posted by Joe Lauer <jo...@rootlevel.com>.
1. You can use session variables to keep track of what they checked on
previous pages. Or you can plop it into a db to keep track of it.
2. If you store it in the db then you can just have it update the fields
they went back to and updated. The same for session storage. Then you can
have a wizard interface with a back and next buttons.
3. %udat can do it and will do it. %udat is for storing session variables.
%udat is a little tricky to setup, but its not that tough. Read all the
docs on Apache::Session to see how to set it up. I happen to set it up by
using MySQL and a sessions table and then setup everything in my Apache
startup.pl script every time Apache boots up. There are also other ways to
do it. You can use the filesystem, etc.
-joe
______________________________________________________
joe lauer rootlevel
product developer 743 beaubien, suite 300
p.313.961.4407 x302 detroit, mi 48226
f.313.961.4568 www.rootlevel.com
-----Original Message-----
From: Sherwin Daganato [mailto:win@email.com.ph]
Sent: Sunday, August 27, 2000 5:22 AM
To: embperl@perl.apache.org
Subject: checkboxes in embperl
I was displaying rows of selection using checkboxes.
The problem is when there are too many selections (e.g. >100) to display,
my embperl page slows down.
I am planning to cut the selections into 25 rows per page. Users of this
page will just have to click next/previous button.
My questions are:
1. How will i know if there were selections checked in other pages?
2. How will i know if a user goes back to a certain page and unchecked
the previously checked selection.
3. Can %udat do this? How?
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org