[rm-users] SQR, javascript and substitution variables

Eric Dimick Eastman erice@ontko.com
Tue, 20 Jun 2000 07:35:34 -0500 (EST)


Jeff,

SQR treats any pair of "{}" on the same line as enclosing a
substitution variable. It does this even if the "}" comes before the
"{".  This causes an ugly message.  The only solution is to put the "{"
and "}" on different lines.

For example:
PRINT ›'<SCRIPT LANGUAGE="JavaScript">function some_function(){' ()
code-printer=ht
PRINT '  ...;} </script>' (,+1) code-printer=ht

Notice the "+1"; it is important.  "code-printer" causes the print
position not to be advanced, so multiple successive "code-printer"
statements with a position of "()" are printed directly on top of each
other and will end up in the HTML file in no particular order.

I hope this helps,
Eric

--------------------------------------
Eric Dimick Eastman  |Ray Ontko & Co |
erice@ontko.com      |Richmond, IN   |
http://www.ontko.com |               |