Peter Speltz wrote:
On 4/6/06, Dave Howorth <[EMAIL PROTECTED]> wrote:

There are a couple of stages to this, I think. First you will need to
add the checkboxes to the page. Then you will need to write a new action
to process the checkboxes.


For javascript to check all or clear all if you need that, i just cut and pasted the code here this week in an app.

http://www.smartwebby.com/DHTML/check_clear_all.asp

 Works great. Then  you get an array of values in your
params->{checkbox_name}. Those would be your beer ids more than
likely. I have not written the checkbox code in AsForm yet but when i
do or someone else does you could just say:
$beerobj->to_field(beer_id => checkbox);

I was deliberatley a bit vague because I don't use standard Maypole page layouts. But I think some versions of Maypole use forms for the edit and delete buttons on each row of the list. So adding a form that encloses all the checkboxes means nesting forms.

Which in theory is a bad thing :( and also for real on some browsers.

Personally, I always use normal HTML links for the edit and delete buttons, so I don't run into that problem ...

Cheers, Dave


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to