DTML method that displays comments when called from a DTML document
Hello. I have a DTML method which is being called from a DTML document. When called, the method prints all the comments it contains in the order in which its code is executed. Does anyone know why this is happening? Any help would be greatly appreciated. Thanks. __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com
At 10:48 AM 2/13/2003, Asad Habib wrote:
Hello. I have a DTML method which is being called from a DTML document. When called, the method prints all the comments it contains in the order in which its code is executed.
If the comments are HTML comments, eg: <!-- some comment --> then this would be expected. Use DTML comments if you don't want them to pass through to the user. If the comments are DTML comments, eg: <dtml-comment> some comment </dtml-comment> then your DTML is not being evaluated. To fix the second case, use <dtml-var "spam"> instead of <dtml-var spam> The former *evaluates* spam while the latter merely binds to it. HTH, Dylan
Dylan Reinhardt wrote:
To fix the second case, use
<dtml-var "spam">
instead of
<dtml-var spam>
The former *evaluates* spam while the latter merely binds to it.
I'm pretty sure you've got those two the wrong way round. cheers, Chris
At 01:11 AM 2/14/2003, Chris Withers wrote:
Dylan Reinhardt wrote:
To fix the second case, use <dtml-var "spam"> instead of <dtml-var spam> The former *evaluates* spam while the latter merely binds to it.
I'm pretty sure you've got those two the wrong way round.
Sorry... you are correct, of course. That's what I get for helping without testing... :-) Thanks for the correction. Dylan
participants (3)
-
Asad Habib -
Chris Withers -
Dylan Reinhardt