Hello i have this example:

[expose(template='test.templates.first)]
    def test_a(self,riv):
        mesea = 'bla'
        b = Messaggi.select()
       return dict(b=b, mesea=mesea)

i need to pass the value of mesea to a js that is this:

function Sel_Mese(mesea){

  var sel = document.getElementById('sel')

  sel.value = mesea

  var mes = sel.value

  var mesi_tot =
['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settempre','Ottobre','Novembre','Dicembre']

  var m_sel = mesi_tot[mes]

  alert(m_sel)

} and is load on the onload of the page

regards

Luca
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to