[albatross-users] revisiting checkboxes..

Eric S. Johansson esj at harvee.org
Thu Jun 26 12:26:55 EST 2003


Andrew McNamara wrote:

> You could prepend something to the token (as you suggest earlier) to make
> it a valid python expression (albeit one that raises an AttributeError,
> which is ignored by albatross):
> 
>     <al-input type="checkbox" name="'token' + spamtrap_token">
> 
> Setting an explict value="on" attribute will also prevent the error.
> 
> The rules and relationships between name, nameexpr, value and valueexpr 
> are really too complex for meer mortals (me included).

just a brief note on this and then it's off to bed.

name should've been namexpr.  name gives me:

<input type="checkbox" onclick="CCA(this,'mystery');DownReset();" 
name="'token'+spamtrap_token" value="on">

it's an interesting form but not what I wanted.  On the other hand nameexpr yields

<input type="checkbox" onclick="CCA(this,'mystery');DownReset();" 
name="tokenf2952773fad60176" value="on">

which is something I can live with
now all I'm left with figuring out is how to turn on or off the checkbox (and 
maybe how to retrieve data... ;-)

---eric






More information about the Albatross-users mailing list