Re: Checkboxes

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 19271
interpreted = N
texte = >Having two s of the same type and the same name is asking for >trouble. What if you remove the second one, NAME=theField VALUE=0> ? Well, the whole point of this thread was that there is no way to make checkboxes work properly without some sort of trick. Including the second line is the trick that we have found to work out pretty well.The problem with HTML checkboxes is that if they are selected the form contains the named field and value, but if they are unchecked NOTHING is sent by the browser. It is really stupid, and I would like to know who was the idiot that defined checkboxes like that...I believe that checkboxes should have been defined like this:and the browser would send the ON or OFF Value, depending on whether it was checked or not. One note of caution, the trick of including the second hidden field only works, because all browsers (so far) send the form fields in the same order as they are shown on screen, and because WebCatalog returns the first value found. If any future browser changes the order of the fields, the trick will break. If anyone else has a better way to use checkboxes, please let us know... Charles_______________________________________________________________ Institut Balear de Comunicacions, S.L. Gremio Tejedores 22, 1 07009 Palma de Mallorca, Spain _____________________________________________ Tel: +34 971.43.12.77 Fax: +34 971.43.08.18 E-mail: ckefauver@ibacom.es URL: http://www.ibacom.es/ _____________________________________________ Public PGP signature (Clave publica PGP): http://www.ibacom.es/PGP/kefauver.txt _______________________________________________________________ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  2. Re: [OT] Checkboxes! Javascript? ( Clint Davis 2005)
  3. Re: [OT] Checkboxes! Javascript? ( Marc Thompson 2005)
  4. Re: [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  5. Re: [OT] Checkboxes! Javascript? ( Marc Thompson 2005)
  6. [OT] Checkboxes! Javascript? ( "WebDna @ Inkblot Media" 2005)
  7. Re: JavaScript: Select All Checkboxes (Clint Davis 2001)
  8. Re: JavaScript: Select All Checkboxes (David Anderson 2001)
  9. JavaScript: Select All Checkboxes (Clint Davis 2001)
  10. Re: Fwd: checkboxes (Webmaster@4GDATA.com 2000)
  11. Re: Fwd: checkboxes (John Peacock 2000)
  12. Re: Fwd: checkboxes (Webmaster@4GDATA.com 2000)
  13. Re: Fwd: checkboxes (John Peacock 2000)
  14. Re: Fwd: checkboxes (Joseph D'Andrea 2000)
  15. Re: Fwd: checkboxes (John Peacock 2000)
  16. Fwd: checkboxes (Joseph D'Andrea 2000)
  17. Re: checkboxes (Webmaster@4GDATA.com 2000)
  18. FW: checkboxes (Webmaster@4GDATA.com 2000)
  19. Re: [checkboxes] and webcat (Joseph D'Andrea 2000)
  20. Re: [checkboxes] and webcat (Serban Constantinescu 2000)
  21. Re: [checkboxes] and webcat (Charles Kline 2000)
  22. [checkboxes] and webcat (2) (Serban Constantinescu 2000)
  23. Re: [checkboxes] and WebCat (2) (Jesse Proudman 2000)
  24. [checkboxes] and webcat (Serban Constantinescu 2000)
  25. Re: writing checkboxes to a database (The Mooseman 2000)
  26. Re: writing checkboxes to a database (Richard 2000)
  27. Re: writing checkboxes to a database (Richard 2000)
  28. Re: writing checkboxes to a database (Kenneth Grome 2000)
  29. Re: writing checkboxes to a database (Bob Minor 2000)
  30. writing checkboxes to a database (Richard 2000)
  31. Re: question about checkboxes (Bob Minor 1999)
  32. Re: question about checkboxes (Ricky Patten 1999)
  33. Re: question about checkboxes (Kenneth Grome 1999)
  34. question about checkboxes (Mike Jones 1999)
  35. Tiny Store / Checkboxes (John Hill 1998)
  36. Checkboxes and neSKUdata=[blank] (Chris W. 1998)
  37. Re: BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  38. Re: BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  39. BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  40. BIG PROBLEMS with Checkboxes!!! (Chris W. 1998)
  41. Re: BIG PROBLEMS with Checkboxes!!! (Rob Marquardt 1998)
  42. Re: BIG PROBLEMS with Checkboxes!!! (Rob Marquardt 1998)
  43. Checkboxes on forms?? (Scott Szretter 1998)
  44. Re: Checkboxes on forms?? (Dave MacLeay 1998)
  45. RE: Checkboxes to add to cart... (Jay Van Vark 1998)
  46. RE: Checkboxes to add to cart... (Rob Marquardt 1998)
  47. Re: Checkboxes to add to cart... (PCS Technical Support 1998)
  48. RE: Checkboxes to add to cart... (Pat McCormick 1998)
  49. Checkboxes to add to cart... (Jim V 1998)
  50. Re: Checkboxes (Peter Ostry 1998)
  51. Re: Checkboxes (Charles Kefauver 1998)
  52. Re: Checkboxes (Peter Ostry 1998)
  53. Re: Checkboxes (Rob Marquardt 1998)
  54. Re: Checkboxes (Charles Kefauver 1998)
  55. Re: Checkboxes (Rob Marquardt 1998)
  56. Re: Checkboxes (Charles Kefauver 1998)
  57. Re: Checkboxes (Rob Marquardt 1998)
  58. Re: Checkboxes (Charles Kefauver 1998)
  59. Re: Checkboxes (Charles Kefauver 1998)
  60. Re: Checkboxes (Kenneth Grome 1998)
  61. Re: Checkboxes (Rob Marquardt 1998)
  62. Checkboxes (Charles Kefauver 1998)
  63. Re: multiple selected Checkboxes (Sue Ann Sanders 1998)
  64. Re: multiple selected Checkboxes (Peter Ostry 1998)
  65. multiple selected Checkboxes (Sue Ann Sanders 1998)
  66. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  67. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  68. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  69. Re: Updating checkboxes made easy !!! (Laurent Pladys 1998)
  70. Updating checkboxes made easy !!! (Laurent Pladys 1998)
  71. Re: Updating checkboxes made easy !!! (Dave MacLeay 1998)
  72. Re: Updating checkboxes made easy !!! (Bob Minor 1998)
  73. Re:Multiple appends with checkboxes (Jay Van Vark 1998)
  74. Multiple appends with checkboxes (Gil Poulsen 1998)
  75. Re: Checkboxes (dwilfong@world-wide-art.com (David Wilfong) 1997)
  76. Re: Checkboxes (Kenneth Grome 1997)
  77. Checkboxes (dwilfong@world-wide-art.com (David Wilfong) 1997)
  78. Re: possible, WebCat2.0 and checkboxes-restated (Grant Hulbert 1997)
  79. Re: possible, WebCat2.0 and checkboxes-restated (grichter@panavise.com (Gary Richter) 1997)
  80. Re: possible, WebCat2.0 and checkboxes-restated (Grant Hulbert 1997)
  81. possible, WebCat2.0 and checkboxes-restated (grichter@panavise.com (Gary Richter) 1997)
  82. Re: Is this possible, WebCat2.0 and checkboxes (Grant Hulbert 1997)
  83. Is this possible, WebCat2.0 and checkboxes (grichter@panavise.com (Gary Richter) 1997)
  84. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  85. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Grant Hulbert 1997)
  86. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
  87. Re: WebCat2b13 Mac plugin - [sendmail] and checkboxes (grichter@panavise.com (Gary Richter) 1997)
  88. WebCat2b13 Mac plugin - [sendmail] and checkboxes (Kenneth Grome 1997)
>Having two s of the same type and the same name is asking for >trouble. What if you remove the second one, NAME=theField VALUE=0> ? Well, the whole point of this thread was that there is no way to make checkboxes work properly without some sort of trick. Including the second line is the trick that we have found to work out pretty well.The problem with HTML checkboxes is that if they are selected the form contains the named field and value, but if they are unchecked NOTHING is sent by the browser. It is really stupid, and I would like to know who was the idiot that defined checkboxes like that...I believe that checkboxes should have been defined like this:and the browser would send the ON or OFF Value, depending on whether it was checked or not. One note of caution, the trick of including the second hidden field only works, because all browsers (so far) send the form fields in the same order as they are shown on screen, and because WebCatalog returns the first value found. If any future browser changes the order of the fields, the trick will break. If anyone else has a better way to use checkboxes, please let us know... Charles_______________________________________________________________ Institut Balear de Comunicacions, S.L. Gremio Tejedores 22, 1 07009 Palma de Mallorca, Spain _____________________________________________ Tel: +34 971.43.12.77 Fax: +34 971.43.08.18 E-mail: ckefauver@ibacom.es URL: http://www.ibacom.es/ _____________________________________________ Public PGP signature (Clave publica PGP): http://www.ibacom.es/PGP/kefauver.txt _______________________________________________________________ Charles Kefauver

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Looping control (1997) Emailer setup (1997) RequiredFields template (1997) Smith Micro - no competition (2000) setting values (1998) Multiple Users.db Possible? (1997) WebCatalog can't find database (1997) SKU lookup (1997) Dumb Question about Docs (1997) Magic [text] shows and then no show (2000) A little syntax help (1997) [WebDNA] YouTube Query Code Sample (2013) [Reload mydata.db] (1998) Displaying photo attached to first record (1997) shipping costs (1997) Getting Crazy (1998) [replaceChars] would be nice ... (1997) Tab Charactor (1997) [WebDNA] Repeated Task [reworking a DB) (2015) flushdatabases (1997)