diff options
Diffstat (limited to 'apps/samples/miles/miles.js')
-rw-r--r-- | apps/samples/miles/miles.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/samples/miles/miles.js b/apps/samples/miles/miles.js index 4f31d68..451306b 100644 --- a/apps/samples/miles/miles.js +++ b/apps/samples/miles/miles.js @@ -68,6 +68,7 @@ function Miles(element, params) { query += "&userid=" + encodeURIComponent(email); query += "&session=" + encodeURIComponent(problemName); + self.messageElem.innerHTML += "Connecting to http://" + scxmlURL + "/miles/start" + query + "<br />"; self.xhr.get({ // The URL to request url: "http://" + scxmlURL + "/miles/start" + query, @@ -342,6 +343,10 @@ function Miles(element, params) { name: "problemName", value: problemName, style: "width: 100%", + onChange: function(){ + problemName = self.problemNameBox.get('value'); + } + }); dojo.query("div.problemName", self.connectToolTip.domNode)[0].appendChild(self.problemNameBox.domNode); @@ -349,6 +354,9 @@ function Miles(element, params) { name: "email", value: email, style: "width: 100%", + onChange: function(){ + email = self.emailBox.get('value'); + } }); dojo.query("div.email", self.connectToolTip.domNode)[0].appendChild(self.emailBox.domNode); @@ -356,6 +364,9 @@ function Miles(element, params) { name: "remoteEmail", value: remoteEmail, style: "width: 100%", + onChange: function(){ + remoteEmail = self.remoteEmailBox.get('value'); + } }); dojo.query("div.remoteEmail", self.connectToolTip.domNode)[0].appendChild(self.remoteEmailBox.domNode); @@ -363,6 +374,9 @@ function Miles(element, params) { name: "reflectorIp", value: reflectorIp, style: "width: 100%", + onChange: function(){ + reflectorIp = self.reflectorIpBox.get('value'); + } }); dojo.query("div.reflectorIp", self.connectToolTip.domNode)[0].appendChild(self.reflectorIpBox.domNode); @@ -370,6 +384,9 @@ function Miles(element, params) { name: "scxmlURL", value: scxmlURL, style: "width: 100%", + onChange: function(){ + scxmlURL = self.scxmlURLBox.get('value'); + } }); dojo.query("div.scxmlURL", self.connectToolTip.domNode)[0].appendChild(self.scxmlURLBox.domNode); |