diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-06-20 19:53:21 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-06-20 19:53:21 (GMT) |
commit | 794575f01ce5a6bf7e377eb815f3def5aded74f5 (patch) | |
tree | 9c59df64ee290f68b7b6c8698bfac4169684485e /test/samples/uscxml/test-xhtml-invoker.scxml | |
parent | d304f85417e3175c5f2ca159dd303309c24e7b81 (diff) | |
download | uscxml-794575f01ce5a6bf7e377eb815f3def5aded74f5.zip uscxml-794575f01ce5a6bf7e377eb815f3def5aded74f5.tar.gz uscxml-794575f01ce5a6bf7e377eb815f3def5aded74f5.tar.bz2 |
New version with XHTML invoker
Diffstat (limited to 'test/samples/uscxml/test-xhtml-invoker.scxml')
-rw-r--r-- | test/samples/uscxml/test-xhtml-invoker.scxml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/samples/uscxml/test-xhtml-invoker.scxml b/test/samples/uscxml/test-xhtml-invoker.scxml new file mode 100644 index 0000000..aec4db3 --- /dev/null +++ b/test/samples/uscxml/test-xhtml-invoker.scxml @@ -0,0 +1,33 @@ +<scxml datamodel="ecmascript" name="comet-test" + xmlns:html="http://www.w3.org/1999/xhtml" + xmlns="http://www.w3.org/2005/07/scxml"> + + <script src="http://uscxml.tk.informatik.tu-darmstadt.de/scripts/dump.js" /> + + <state id="start"> + <invoke type="xhtml" id="xhtml1"> + <!-- replacechildren (default), firstchild, lastchild, previoussibling, nextsibling, replace, delete, addattribute --> + <content type="replacechildren" xpath="/html/body"> + <html:form onmouseover="scxml.send('onmouseover', arguments[0])"> + First name1: <html:input type="text" name="firstname" /><html:br /> + Last name1: <html:input type="text" name="lastname" /> + <html:input onclick="scxml.send('onclick', arguments[0])" type="button" value="Submit" /> + </html:form> + </content> + </invoke> + + <state id="idle"> + <transition target="idle" event="onmouseover"> + <log expr="dump(_event)" /> + </transition> + <transition target="idle" event="onclick" cond="_event.origin=='xhtml1'"> + <send target="#_xhtml1"> + <content type="lastchild" xpath="/html/body"> + <html:p>Thank you!</html:p> + </content> + </send> + </transition> + </state> + + </state> +</scxml>
\ No newline at end of file |