| CallXML 2.0 Development Guide | Home | Frameset Home |
| next | Data Type: (navigation identifier) | Default: none - attribute is optional |
| The 'next' attribute sets the URL the CallXML platform will go to when the container ends. | ||
| type | Data Type: (error-event type) | Default: none - attribute is optional |
| The 'type' attribute, when used in conjunction with the <onerror> element is used for fine-grained event handling for specific circumstances. When a specific error is thrown, the callXML browser will look for a specific <onerror type> matching the event thrown, and execute the code contained within. If no specific handlers are present, the browser will then execute any generic <onerror> elements that are present and execute the code within. The allowable values for this atribute are:
| ||
| <?xml version="1.0" encoding="UTF-8"?> <callxml version="2.0"> <block label="B1"> <text> lets toss some errors to the application, and we will see how event handling works. </text> <goto value="#B2"/> </block> <block label="B2"> <!-- INSERT BAD CODE HERE --> </block> <!-- NOTE THAT EVENT HANDLERS MUST BE BELOW EXECUTABLE CONTENT --> <onerror type="document"> <log value="=== RECEIVED A DOCUMENT ERROR: ==="/> <log value="=== SESSION.LASTERROR: $session.lasterror; ==="/> </onerror> <onerror type="execution"> <log value="=== RECEIVED A EXECUTION ERROR: ==="/> <log value="=== SESSION.LASTERROR: $session.lasterror; ==="/> </onerror> <onerror type="linenotactive"> <log value="=== RECEIVED A LINENOTACTIVE ERROR: ==="/> <log value="=== SESSION.LASTERROR: $session.lasterror; ==="/> </onerror> <onerror type="lineactive"> <log value="=== RECEIVED A LINEACTIVE ERROR: ==="/> <log value="=== SESSION.LASTERROR: $session.lasterror; ==="/> </onerror> </callxml> |
| ANNOTATIONS: EXISTING POSTS |
| login |