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

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

Forwarded message 1

  • From: Chris Davis <davisc@iivip.com>
  • Date: Thu, 15 Apr 2010 10:52:53 -0500
  • Subject: April CCXML: bad function in test document 6_1.txml
  • To: www-voice <www-voice@w3.org>
  • Message-ID: <4BC73655.4030301@iivip.com>
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 UTC