...
Code Block |
---|
var x; if (search.clicked) { eval('x=' + http.get('http://<webhost>(your webhost)/getCoffeeShopList')); coffeeShopList.options = x.options; } |
...
Code Block |
---|
/*member auth */ var x; if (sign.clicked) { // passwords may contain characters that need url encoding var p_encode = encodeURIComponent(p.value); eval('x=' + http.get('http://<myhost>(your webhost)/authServices/signForm?username=' + u.value + '&password=' + p_encode)); if (x.auth) { var dt = new Date(); var day = dt.getDate(); var month = dt.getMonth() + 1; var year = dt.getFullYear(); d.value = month + '-' + day + '-' + year; d.visible = true; u.enabled = false; p.visible = false; sign.visible = false m.visible = false; } else { m.visible = true; } } |
...
Code Block |
---|
/*member num */ var x; if (form.unload) { eval('x=' + http.get('http://<webhost>(your webhost)/json/getNextOrdernum')); OrderNum.value = x.num; } |
...
Code Block |
---|
/*member lastname resultSet */ var x; if (getCustomerList.value === 'Yes') { eval('x=' + http.get('http://<webhost>(your webhost)/database/lastnames')); var opts= []; for (var i=0; i < x.resultSet.length; i++) { if (x.resultSet[i]) { opts[i] = x.resultSet[i].lastname; } } customerLastNames.options = opts; } |
...
Code Block |
---|
/*member firstname lastname resultSet */ var x; if (getCustomerList.value === 'Yes') { eval('x=' + http.get('http://<webhost>(your webhost)/database/names')); var opts= []; for (var i=0; i < x.resultSet.length; i++) { if (x.resultSet[i]) { opts[i] = x.resultSet[i].firstname + " " + x.resultSet[i].lastname; } } customerFullNames.options = opts; } |
...
Code Block |
---|
/*member firstname resultSet */ var x; if (docname.value.length > 0) { eval('x=' + http.get('http://<webhost>(your webhost)/database/firstnames')); var opts= []; for (var i=0; i < x.resultSet.length; i++) { if (x.resultSet[i]) { opts[i] = x.resultSet[i].firstname; } } customerFirstNames.options = opts; } |
...