Page 1 of 1

semantic error due to missing semicolon ;

Posted: Fri May 07, 2004 1:05 pm
by ban
THe online log gives the following error message:

Fri 07 May 2004 02:00:53 PM EDT (000000;001;1083952766) [jsi] ERROR: errmsg SyntaxError: missing ; before statement line 1 linetxt 3_101526 tokentxt _101526

due to the following line:

Code: Select all

<var name="smid" expr="3_101526" />
There is nothing in the documentation indicating a semicolon is required anywhere.

IVR platform maintains conformance with ECMA script behavior

Posted: Mon May 10, 2004 3:10 pm
by support
hello:

the contents of the expr attribute is wrong. If you don't specify single quotes around the value you are trying to represent, expr will evaluate to an ECMA script statement. "3_101526" is not valid ECMAscript, so it throws an IVR error. If you are trying to assign a literal value to a variable, you need to enclose the item in quotes, like this:

Code: Select all

<var name="smid" expr="'3_101526'"/>


Plum's IVR platform maintains conformance with the ECMA script behavior as defined in the w3c spec, located here:

http://www.w3.org/TR/2004/REC-voicexml20-20040316/

Section 5.3 decribes the <var> tag behavior.


Hope this helps,

Plum Support