luca72 ha scritto:
> Hello Diez
> Many thanks for your prompt reply, can you show me a little example on
> tell me where to get it.
> Regards
>
> Luca
>
>
Something like:
return dict( injectJS = JSSource( """
function Sel_Mese(){
var sel = document.getElementById('sel')
sel.value = %s ;
var mes = sel.value
var mesi_tot = ['Gennaio','Febbraio','Marzo','Aprile',...]
var m_sel = mesi_tot[mes] } """ % data['mesea'] )
amd in your template you can insert the injectJS value "on fly"
Glauco
--
+------------------------------------------------------------+
Glauco Uri
glauco(at)sferacarta.com
Sfera Carta Software® info(at)sferacarta.com
Via Bazzanese,69 Casalecchio di Reno(BO) - Tel. 051591054
+------------------------------------------------------------+
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---