W3C home > Mailing lists > Public > www-voice@w3.org > April to June 2010

[Fwd: April CCXML: bad function in test document 6_1.txml]

From: Chris Davis <davisc@iivip.com>
Date: Fri, 16 Apr 2010 18:03:59 -0500
Message-ID: <4BC8ECDF.9070703@iivip.com>
To: www-voice@w3.org
Hello www-voice,

I am withdrawing the forwarded comment - I had forgotten about the ccxml 
scope!

-- 
Chris Davis
Interact Incorporated R&D
512-502-9969x117


attached mail follows:


Hello www-voice,

There is some bad javascript in 6_1.txml of 
http://www.w3.org/Voice/2009/ccxml-irp/ccxml10-irp-20100331.zip

The segment of code that reads
 <var name="counter" expr="0"/>
      <script>
        function next()
        {
          ccxml.counter = ccxml.counter + 1;
          return ccxml.counter;
        }
      </script>

should be instead
<var name="counter" expr="0"/>
      <script>
        function next()
        {
          counter = counter + 1;
          return counter;
        }
      </script>

The fact that ccxml is not a defined object before being referenced 
causes the javascript to burst.

Thanks

-- 
Chris Davis
Interact Incorporated R&D
512-502-9969x117
Received on Friday, 16 April 2010 23:04:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 16 April 2010 23:04:50 GMT