>
> Ah, you're right. Sorry, giving out duff advice here. Looking back, I
> realise I've only done this before in Genshi py:for blocks, not in JS.
> Well, the quick hack is to use >= instead, and swap the operands. Some
> other ideas:
Nope, Genshi turns ">=" into ">=". I guess I should file an
enhancement request
>
> Put this in a static .js file
This solution did work. I had to pass everything into the function at
each call, rather than relying on text substitution. So the function
went from
function showLetters(showThisLetter) {
for (i = 0; i < '${usedLetters}'.length; i++) {
var letter = '$[letters}'.charAt(i);
if (letter == showThisLetter) {
makeVisible(letter)
} else {
makeVisible(letter)
}
}
}
to this:
function showLetters(showThisLetter, allLetters) {
for (i = 0; i < allLetters.length; i++) {
var letter = allLetters.charAt(i);
if (letter == showThisLetter) {
makeVisible(letter)
} else {
makeInvisible(letter)
}
}
}
And you know what? I like that newer javascript even better. (Not so
much switching-back-and-forth between JS and Genshi.)
> I wonder if Genshi has an equivalent to XSLT's disable-output-escaping?
> Someone mentioned CDATA.
I tried a few flavors, but could not get it to work.
Thanks to everyone for all the help!
>
> Good luck,
>
> Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---