Consultor Eletrônico



Kbase P4512: How to pass a value of a variable from Speedscript to Javasc
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/6/2010
Status: Verified

GOAL:

How to pass a value of a variable from Speedscript to a Javascript alert box

FACT(s) (Environment):

WebSpeed 3.x

FIX:

Since alert boxes do not exist in Webspeed, the following may be used to display an alert box using Javascript:


DEFINE VARIABLE vName AS CHARACTER NO-UNDO.

ASSIGN vName = 'value'.

{&out} '<Script Language = "Javascript">' SKIP
       'alert("' + vName + '")'    SKIP
      '</script>'.