script in table

S

shimmyshack

Hi :)

i've found a usefull script :http://www.editeurjavascript.com/scripts/scripts_formulaires_3_786.php

but if i do the same with my form inserted in a table then it doesn't
work anymore.

i don't understand why as my javascript knowledge is poor :(

is there a solution to make this script work even when the form is in
a table ?

Thanks a lot.

the code assumes the inputs are next to each other. siblings, so if
you place them inside a table they must all be in the same cell. why
not use css to style the inpouts so they can remain together, or
change the script to not reply on them being adjacent.
 
R

RobG

Hi :)

i've found a usefull script :http://www.editeurjavascript.com/scripts/scripts_formulaires_3_786.php

but if i do the same with my form inserted in a table then it doesn't
work anymore.

i don't understand why as my javascript knowledge is poor :(

is there a solution to make this script work even when the form is in
a table ?

The script is very ordinary, you will be better off to describe what
you are actually trying to do and someone may offer some help. There
was a question very recently that asked about checking and unchecking
a bunch of checkboxes, look at recent posts (say within last 7 days).
 
A

Axelar

The script is very ordinary, you will be better off to describe what
you are actually trying to do and someone may offer some help. There
was a question very recently that asked about checking and unchecking
a bunch of checkboxes, look at recent posts (say within last 7 days).

i'm trying to manage rights for a photo/video galery.
so i've made a table with a row for each photo album and a column for
each different right (access, modify, delete, comment....)
but to be more efficient i'd like to have a way to make multiple
checkings, for example if i check the access checkbox for the holiday
photo folder, i want every sub-folder such as holidays 2K4, holidays
2K5 and holidayS 2K6 to have the access checkbox checked, as they are
'sons' of holiday folder.

sorry for my poor english and thanks for your answers !
 
S

shimmyshack

i'm trying to manage rights for a photo/video galery.
so i've made a table with a row for each photo album and a column for
each different right (access, modify, delete, comment....)
but to be more efficient i'd like to have a way to make multiple
checkings, for example if i check the access checkbox for the holiday
photo folder, i want every sub-folder such as holidays 2K4, holidays
2K5 and holidayS 2K6 to have the access checkbox checked, as they are
'sons' of holiday folder.

sorry for my poor english and thanks for your answers !

you first question is "how do I determine what are sons of the current
object"
is there a way you can do this, do they all have something in common
holidays
|_holiday_2k3
|_holiday_2k4
|_holiday_2k5
....
screenshots
|_screenshot_1
|_screenshot_2
|_screenshot_3
....

or are they random
screnshots
|_screentshot_of_mac_app
|_shot_of_win_app

so determine how you are going to find the "group" of things to be
checked, then loop through them setting them to checked.
if you cant think how to get the group then post some of your source
code.
 
R

RobG

Axelar said:
i'm trying to manage rights for a photo/video galery.
so i've made a table with a row for each photo album and a column for
each different right (access, modify, delete, comment....)
but to be more efficient i'd like to have a way to make multiple
checkings, for example if i check the access checkbox for the holiday
photo folder, i want every sub-folder such as holidays 2K4, holidays
2K5 and holidayS 2K6 to have the access checkbox checked, as they are
'sons' of holiday folder.

sorry for my poor english and thanks for your answers !

Search for the thread with title "Checkboxes inside the Table Cells"
 
A

Axelar

you first question is "how do I determine what are sons of the current
object"
is there a way you can do this, do they all have something in common
holidays
|_holiday_2k3
|_holiday_2k4
|_holiday_2k5
...
screenshots
|_screenshot_1
|_screenshot_2
|_screenshot_3
...

or are they random
screnshots
|_screentshot_of_mac_app
|_shot_of_win_app

so determine how you are going to find the "group" of things to be
checked, then loop through them setting them to checked.
if you cant think how to get the group then post some of your source
code.

they are sorted, you can have a look at the page and the source at :
http://www.axelar.net/testjava.php?action=gererdroits
Search for the thread with title "Checkboxes inside the Table Cells"

I've read the thread but it only work with one column, and i need to
be able to check column by column...

Anyway thanks for your answers :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top