The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Entry #100123 - WTF Web Calc

Last post 06-11-2007 12:32 PM by Alex Papadimoulis. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-11-2007 12:32 PM

    Entry #100123 - WTF Web Calc

    The application is a web server that handles calculator UI generation and logic through dynamic HTML and Javascript. It is written entirely in C and uses no third-party libraries. Firefox is launched to access the web server running on localhost. When the user presses a calculator button, an AJAX call (XMLHttpRequest) is sent to the application, indicating the button press. When "=" is pressed, the calculation is processed by accessing Google. The response is "screen scraped" to extract the result and sent it back to the client.
Page 1 of 1 (1 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems