Plum DEV Documentation
voicexml:tags:script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:tags:script [2014/06/02 10:00]
jennifer added meta description
voicexml:tags:script [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​‹script› VoiceXML tag details, attributes and VXML code example | The script element specifies a block of client-side scripting language code.}} 
-=====<​script>​===== 
- 
-The <​script>​ element allows the specification of a block of client-side scripting language code, and is analogous to the HTML <​SCRIPT>​ element. 
-====Attributes==== 
-| src | The URI specifying the location of the script, if it is external. | 
-| srcexpr | Dynamically determine the URI to fetch by evaluating this ECMAScript expression. | 
-| charset | (defaults to "​UTF-8"​) The character encoding of the script designated by src. | 
-| fetchhint | This attribute is not supported. | 
-| fetchtimeout | (defaults to "​fetchtimeout"​ global property value) The timeout for fetches. Must be specified with the appropriate time units (e.g., "​120s"​ for 120 seconds). | 
-| maxage | (defaults to "​scriptmaxage"​ global property value) Tells the platform the maximum acceptable age, in seconds, of cached scripts.| 
-| maxstale | (defaults to "​scriptmaxstale"​ global property value) Tells the platform the maximum acceptable staleness, in seconds, of expired cached scripts. | 
- 
-====Notes==== 
- 
-It is advisable to place all script text between CDATA delimiters: "<​![CDATA["​ and "​]]>"​. Alternatively,​ conditional ECMAScript expressions that use the "<"​ or ">"​ symbols can use the replacements "&​lt"​ and "&​gt",​ respectively. 
- 
-====Example==== 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
-  <​form>​ 
-    <​script>​ 
-      test_var=1234;​ 
-    </​script>​ 
-    <​block>​ 
-      <​prompt>​ 
-        The test variable is set to <value expr="​test_var"/>​. 
-      </​prompt>​ 
-    </​block>​ 
-  </​form>​ 
-</​vxml>​ 
-</​code>​ 
-The output of the above script would be: 
- 
-Computer: The test variable is set to twelve hundred thirty-four. 
- 
- 
-====Child Tags==== 
- 
-None 
- 
- 
-====Parent Tags==== 
- 
-[[voicexml:​tags:​block|<​block>​]],​ [[voicexml:​tags:​catch|<​catch>​]],​ [[voicexml:​tags:​error|<​error>​]],​ [[voicexml:​tags:​filled|<​filled>​]],​ [[voicexml:​tags:​foreach|<​foreach>​]],​ [[voicexml:​tags:​form|<​form>​]],​ [[voicexml:​tags:​help|<​help>​]],​ [[voicexml:​tags:​if|<​if>​]],​ [[voicexml:​tags:​noinput|<​noinput>​]],​ [[voicexml:​tags:​nomatch|<​nomatch>​]],​ [[voicexml:​tags:​vxml|<​vxml>​]] 
-