I basically would like to get an iterator i for a list (listitems)
correctly returned to the template from the controller, and then assign img
src a value of i.next() when I click on a button. However, I get an error:
SyntaxError:invalid syntax. Any pointers as to what is wrong? Thanks in
advance.
This is what I'm doing in my .kid file:
<body>
${i = iter(listitems)}
<center>
<iframe id="frameid" src="someurl" />
<button type="button"
onclick="document.getElementById('frameid').src='${i.next()}'">Refresh</button>
</center>
</body>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.