By: powerpop
Date: 2004-07-01
Time: 04:35
|
template for a javascript snippet
the above template is for a piece of javascript that gets used on an html page as an onclick="javascriptfile" i am having the problem that the quotes are not matching up around the above blocks - how can i make it so that either choice results in balanced quotes for javascript - each line should have a ' ' + so that the javascript string remains intact thanks! |
|||
By: Skrol29
Date: 2004-07-01
Time: 14:36
|
Re: template for a javascript snippetHi PowerPop,
I think you forgten the line that closes the nodata section. But I understand the problem. The behavior you have is normal. TBS ignores the text betweens sections of a block. In your snippet, text beween the first section, and the nodata section is ignored whenver data is empty or not. There is a thing that should work for your problem: just stick the closing section tag and the opening nodata tag together. Like this:
|
|||
By: powerpop
Date: 2004-07-02
Time: 01:33
|
Re: template for a javascript snippetokay - i tried that and the quotes work but the array seems to break - here is my code:
and here is the resulting javascript when there IS data in user:
and here is the error message that tbs gives on the template:
|
|||
By: Skrol29
Date: 2004-07-02
Time: 10:51
|
Re: template for a javascript snippetThe nodata section is embeded into the first section!
It can't work. |
|||
By: powerpop
Date: 2004-07-03
Time: 00:43
|
Re: template for a javascript snippetah yes, of course, how silly
|