Consultor Eletrônico



Kbase 20331: WS - Javascript src tag Does Not Recognize Progress Variable
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/06/2002
Status: Unverified

FACT(s) (Environment):

WebSpeed 3.1A

SYMPTOM(s):

When using <Script Language=JavaScript> in a WebSpeed file, if src is assigned to a Progress variable, it doesn't recongize the Progress variable.

The program does not run

FIX:

Put the entire <script Language> block in double quotes and make it a variable:
<script language="speedscript">
def var myvar as char.
myvar = '<SCRIPT language="javascript"
src="/mytest2.js"><~/script>'.
</script>
<HTML>
<H3> Now running Javascript2 ... </H3>
`myvar`
<H3> Javascript done... </H3>
<body>
</body>
</html>