This is a question about a obsessive-compulsive disorder patient. photo from |
In the default Datasnap REST application, if there is a specified build of the Sample Methods :
The "echostring" and "ReverseString" two method and corresponding pages are added to the template. By opening the Reversestring template, you can learn that JavaScript is written like this:
1 2 3 4 5 6 7 8 9 10 11 | function onReverseStringClick() { if (loginRequired && (AdminInst == null)) { showLogin(true); return; } var valueField = document.getElementById('valueField'); var s = serverMethods().ReverseString(valueField.value); valueField.value = s.result; } |