HighDots Forums  

JavaScript help needed for complex checkbox issue

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss JavaScript help needed for complex checkbox issue in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RobGT
 
Posts: n/a

Default JavaScript help needed for complex checkbox issue - 07-27-2005 , 07:35 AM






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



Reply With Quote
  #2  
Old   
RobGT
 
Posts: n/a

Default Re: JavaScript help needed for complex checkbox issue - 07-29-2005 , 07:22 AM






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



Reply With Quote
  #3  
Old   
RobGT
 
Posts: n/a

Default Re: JavaScript help needed for complex checkbox issue - 08-01-2005 , 06:54 AM



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



Reply With Quote
  #4  
Old   
Mick White
 
Posts: n/a

Default Re: JavaScript help needed for complex checkbox issue - 08-01-2005 , 08:38 AM



RobGT wrote:

Quote:
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


Reply With Quote
  #5  
Old   
RobGT
 
Posts: n/a

Default Re: JavaScript help needed for complex checkbox issue - 08-01-2005 , 08:53 AM



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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.