in reply to Re^2: Hpw to uncheck one checkbox if some other is checked
in thread How to uncheck one checkbox if some other is checked

SerZKO:

When one is checked, disable the incompatible ones in your on-click handler. When it's unchecked, re-enable them.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re^3: Hpw to uncheck one checkbox if some other is checked

Replies are listed 'Best First'.
Re^4: Hpw to uncheck one checkbox if some other is checked
by SerZKO (Beadle) on Aug 09, 2012 at 20:01 UTC
    Thanks roboticus, but I don't know how to do that, so if you could help...

      Have you tried looking at the CGI.pm documentation?

      If you don't want to reload the page, you will have to learn Javascript.

        Hej Corion and thanks for your reply.

        I wrote "CGI.pm documentation says that I can use onClick argument with JavaScript, but I don't know nothing about JavaScript, so any help/pointing to right place is appreciated, just please don't expect from me to learn JavaScript just for this purpose." which means I did read CGI.pm documentation (I'm not claiming that I understood everything though), and I really don't have a time to learn JavaScript just for this one.

        I was thinking that it has to be already done like a million times, but I couldn't find anything that works on the web. Or I just don't know how to implement it.

        So if there's any chance to get some help here then fine. If not then it's fine too.

      SerZKO:

      Sorry, but I don't even know what you're doing: HTML? a GUI? Your post doesn't really make that clear. On the other hand, even if it *did* make it clear, I probably wouldn't be much help as I don't do GUI or Web programming anyway.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

      Hi,

      On pretty much any search engine - javascript checkbutton disable - will give you many choices of web sites to learn how to do this. W3Schools have a nice reference section which I find perfect for looking this stuff up. Don't trust their advice for everything though.

      Actually I find javascript to be very similar to Perl, just a bit more objecty.

      J.C.

        Oops meant checkbox - not checkbutton - sorry