Blog Archives

RESTful Communications: XML Request-Response

Planetary statistics relating to Pluto, displayed after a successful communication between a JavaScript client and a PHP RESTful Web Service.

This post demonstrates and describes XML communication between a JavaScript Client and a RESTful Web Service written in PHP. Images of the two major JavaScript functions that facilitate this communication are included; if the user is interested, (s)he may click on these images to enlarge them and inspect the JavaScript coding.

Tagged with: , , , ,
Posted in RESTful Communications

MORSE CODE TRANSLATOR

Screenshot of the Morse Code Translator in action.

This is a Morse Code Translator built using JavaScript. Text is entered into the input area and instantly translated and output directly below. There is a further option to watch the text being translated in ‘real-time’, whereby each character is translated in turn. The background colour of the ‘real-time translation’ paragraph toggles between khaki and transparent as each dot or dash is output. For the purposes of this ‘real-time translation’, a Morse Code Unit has been assigned the value of 300 milliseconds. Further information on timing and translation speed is given on the translation page.

Tagged with: , ,
Posted in Web Design