The code for check_all() is in
http://svn.stylite.de/viewvc/egroupware/trunk/etemplate/js/etemplate.js?view=markup
Stéphanie Junguené schrieb:
Hello everybody!
I have a little probleme with the toggle_all function.
I am developping an application, and I have a grid containing some
informations, and the last colomn of my grid contains actions’buttons!
One of them is a checkbox button! (like addressbook.index template)
I added, as for the adressbook.index template, a check_all button with
the javascript code (personalised onClick) : toogle_all(…) to check
and un-check the checkboxes.
My problem is that my actions’buttons are in a grid not in a hbox like
in addressbook ( for some needs for my applications)
The name of that grid is ${row}[action], and inside i have my checkbox,
which name is : checked[].
If i put in the onClick field :
toggle_all(this.form,form::name(‘checked[]’)); return false; to check
and uncheck the checkboxes,
If you use ${row}[action] for the grid, the name of each individual box
is different: 1[action][checked][], 2[action][checked][], …
toggle_all(this.form,form::name(‘checked[]’)) returns a wrong name and
check_all finds no matches.
Only solution, either use an identical name, or write your own check_all
function. Thought you allready need to collect the checked flag from
different locations, as you use different names.
Ralf
it won’t work because my checkboxes’buttons are in a grid with a name,
if I don’t put a name for this grid, it will work!
But i need this grid name!
Is there a way to solve this problem? what can i put instead of
’checked[]’ in the toggle_all function to make it work?
ps: sorry if my english is not good!! hope i am understable!
thanks
Stephanie Junguené
VO2LABS
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers