Root document isn't maintaning variables across two files
Posted: Mon Jun 30, 2008 4:56 pm
Our Root document isn't maintaning variables across two files. We are defining our variables in our root document. (see code below)
<script><![CDATA[
application.callLength = 0;
application.callstartTime = 0;
application.serviceUrl = 'http://www.liveconx.com/liveconxdev/liv ... .asmx?wsdl';
application.targetNumber = 0;
application.trans_id;
application.callDurationSeconds;
application.date_obj = new Date();
application.audio_folder = 'LUM';
application.INTV_DOC_NAME='Root';
application.INTV_ERROR_COUNT=0;
application.INTV_NOINPUT_COUNT=0;
application.INTV_NOMATCH_COUNT=0;
application.INTV_CONFIRM_COUNT=0;
application.INTV_RETURN_VALUE;
application.INTV_RETURN_LEG;
application.INTV_NULL;
if (typeof(application.INTV_CLEANUP_COMPLETE) == 'undefined')
{
application.INTV_CLEANUP_COMPLETE = false;
}
]]></script>
The second document assigns values to the variables in the root document
Next, a third VXML file is executed. The values passed to this third document revert to the root document, the values assigned in the second documen gt are lost.
We've added voice prompts to both the 2nd and 3rd document. So, we know that the 2nd document is properly assigning values to the variables.
The 2nd document is:http://www.liveconx.com/liveconxdev/vxm ... _plum.aspx.
<script><![CDATA[
application.callLength = 0;
application.callstartTime = 0;
application.serviceUrl = 'http://www.liveconx.com/liveconxdev/liv ... .asmx?wsdl';
application.targetNumber = 0;
application.trans_id;
application.callDurationSeconds;
application.date_obj = new Date();
application.audio_folder = 'LUM';
application.INTV_DOC_NAME='Root';
application.INTV_ERROR_COUNT=0;
application.INTV_NOINPUT_COUNT=0;
application.INTV_NOMATCH_COUNT=0;
application.INTV_CONFIRM_COUNT=0;
application.INTV_RETURN_VALUE;
application.INTV_RETURN_LEG;
application.INTV_NULL;
if (typeof(application.INTV_CLEANUP_COMPLETE) == 'undefined')
{
application.INTV_CLEANUP_COMPLETE = false;
}
]]></script>
The second document assigns values to the variables in the root document
Next, a third VXML file is executed. The values passed to this third document revert to the root document, the values assigned in the second documen gt are lost.
We've added voice prompts to both the 2nd and 3rd document. So, we know that the 2nd document is properly assigning values to the variables.
The 2nd document is:http://www.liveconx.com/liveconxdev/vxm ... _plum.aspx.