This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2005 > JavaScript help needed for complex checkbox issue





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author JavaScript help needed for complex checkbox issue
RobGT

2005-07-27, 7:21 pm

Hi,
I have uploaded a page to demostrate my current issue.
http://robgt.com/test/checkboxes.asp

The intention is to allow a user to check one box per column in both
columns, but not the same row in both columns.

So, if you tick M1, you cannot tick L1.
If you run this page in IE, you will see how it is intended to work.
Unfortunately, it doesn't work in FireFox or, I believe, Netscape.

This is just one segment of the actual page it is taken from - the real page
includes 4 sets of these boxes.

Any help would be greatly appreciated as I need to get this resolved
urgently and cannot see the problem (been looking at it too long I think!).
Cheers,
Rob
http://robgt.com/
Tutorials: http://robgt.com/tutorials/index.asp
Extensions: http://robgt.com/products/index.asp


RobGT

2005-07-29, 7:15 pm

Hi all,
I'm still very stuck with this issue and would appreciate any help if you
know why the javascript isn't working in FireFox. It works fine in IE.
-----------------------------------------
I have uploaded a page to demostrate my current issue.
http://robgt.com/test/checkboxes.asp

The intention is to allow a user to check one box per column in both
columns, but not the same row in both columns.

So, if you tick M1, you cannot tick L1.
If you run this page in IE, you will see how it is intended to work.
Unfortunately, it doesn't work in FireFox or, I believe, Netscape.

This is just one segment of the actual page it is taken from - the real page
includes 4 sets of these boxes.

Any help would be greatly appreciated as I need to get this resolved
urgently and cannot see the problem (been looking at it too long I think!).
-----------------------------------------

Cheers,
Rob
http://robgt.com/
Tutorials: http://robgt.com/tutorials/index.asp
Extensions: http://robgt.com/products/index.asp


RobGT

2005-08-01, 7:27 pm

Found the problem and fixed it.
The issue, for anyone watching, was that IE was automatically passing the
checkbox ID into the loop where Firefox wasn't, so the ID had to be grabbed
from the array using the looping ID number.
Anyway - fixed...
Woohoo!
Cheers,
Rob
http://robgt.com/
Tutorials: http://robgt.com/tutorials/index.asp
Extensions: http://robgt.com/products/index.asp


Mick White

2005-08-01, 7:35 pm

RobGT wrote:

> Hi,
> I have uploaded a page to demostrate my current issue.
> http://robgt.com/test/checkboxes.asp
>
> The intention is to allow a user to check one box per column in both
> columns, but not the same row in both columns.
>
> So, if you tick M1, you cannot tick L1.
> If you run this page in IE, you will see how it is intended to work.
> Unfortunately, it doesn't work in FireFox or, I believe, Netscape.
>
> This is just one segment of the actual page it is taken from - the real page
> includes 4 sets of these boxes.
>
> Any help would be greatly appreciated as I need to get this resolved
> urgently and cannot see the problem (been looking at it too long I think!).
> Cheers,
> Rob
> http://robgt.com/
> Tutorials: http://robgt.com/tutorials/index.asp
> Extensions: http://robgt.com/products/index.asp
>
>

Why not use radio buttons? Your script fails in Safari. If you need to
use checkboxes, a better way to do it is to use a column identifier to
create a collection. If you need help, let me know.
Mick
RobGT

2005-08-01, 7:42 pm

Thanks for letting me know about Safari Mick,
I'll let you know if this needs looking at again.
Cheers,
Rob
http://robgt.com/
Tutorials: http://robgt.com/tutorials/index.asp
Extensions: http://robgt.com/products/index.asp


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews