Em Terça 18 Abril 2006 16:26, [EMAIL PROTECTED] escreveu:
> Thanks for your reply, Jorge!

Hey, I'm the one to thank you for your feedback. ;-)

> I think I failed to make my point in my last message. I'll try again.
>
> :)
>
> If you need a shuttle widget (which is great for large lists!) you can
> do it in 2 easy steps:
> 1) insert a normal <select multiple="multiple"> ... in your template by
> whatever means you like (be it templates, widgets etc.)
> 2) link to a javascript file (see example at
> http://learn.devnet.ro/dual.php ) that transforms *client-side* the
> <select>-box into a fully fledged shuttle widget using DOM

I see.  I haven't looked at the source of the page :-) 

> This implies nice fallback (when you don't have Javascript, you get a
> simple **and working** <select multiple .. > control)

I'd have to code for both cases in my controller, then...  For my specific 
project JavaScript is mandatory and I don't want to operate without it.  But 
I'll see what I can come up with for the widget.  Probably I can implement 
that and tell the developer he needs to check for the presence of some 
boolean value to decide what listbox to read from...

> On the server-side, you treat your shuttle widget exactly as you would
> treat a <select multiple> control. The client JS takes care of
> everything.

Hmmm...  I dunno.  In fact, I'm with a huge migraine to think about anything 
now, but I'll take a look at it later -- tomorrow probably.

Probably if I attribute different IDs to both lists but use the same name I 
might achieve what you're saying in an easier and more transparent way...  
But I can't say anything now :-)

-- 
Jorge Godoy      <[EMAIL PROTECTED]>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to