We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

semantic error due to missing semicolon ;

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
ban
Posts: 21
Joined: Mon May 03, 2004 1:39 pm

semantic error due to missing semicolon ;

Post 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.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR platform maintains conformance with ECMA script behavior

Post 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

Post Reply