[Seaside] Disabled Checkboxes

Marco Qualizza mlq at codedaemon.com
Mon Jul 11 13:54:12 CEST 2005


You could always "fake" disabled -- Use CSS to make it "look" like a
disabled checkbox, and then use "onFocus='blur()' onClick='return
false;'" ...

   Marco

On Mon, 2005-07-11 at 19:19 +0800, Yar Hwee Boon wrote:
> On 11-Jul-05, at PM 06:57, Avi Bryant wrote:
> 
> > So, I don't have any obvious solutions to propose to this problem.  
> > Anyone have further ideas?
> 
> Since a checkbox doesn't actually send true/false to indicate its 
> status (rather it sends the value specified to indicated its enabled 
> and checked), one way would be to do some Javascript voodoo to, upon 
> form submit,  always set each checkbox to enabled and change the value 
> to say, "true"/"false"/"disabled" and modify 
> #checkboxWithValue:callback: to check this value in the callback 
> provided to #valueInputOfType:value:callback:. But it is probably not 
> worth the added complexity and dependency (on JS).
> 
> --
> HweeBoon
> http://motionobj.com/blog/
> MotionObj
> (65) 6764-9774
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
> 



More information about the Seaside mailing list