Extravaganza of javascript, java, and cgi

  • An integrated project that involves all of the above: 1000 Points of Light
         Phase 2

    Abstract

  • Re *special* QUERY_STRING compression algorithm, see Phase 1

    First the CGI

    THE CGI SCRIPT NEEDS TO RECORD THE IMAGE DATA SENT TO THE SERVER FROM
    THE DRAWING APPLET, AND I MUST SEND BACK AN APPLET TAG COMPLETE WITH
    A PARAMETER "DATA" CONTAINING THE MOST RECENT VISITOR'S DRAWING.
    
    THIS WILL INVOLVE USING THE cat COMMAND TO REDIRECT  >>  the,incoming,data
    TO A FILE, AND THEN USING SOME echo STATEMENTS TO CREATE A NEW HTML PAGE
    TO BE SENT ON TO THE CLIENT.
    
  • The source for the cgi script is here.

    Javascript

  • It would be nice to have a separate window for the applet to reside in
    TO THIS END I HAVE WRITTEN A BIT OF JAVASCRIPT THAT CREATES A NEW
    WINDOW.  THE MECHANISM FOR CREATING A NEW WINDOW IN JAVASCRIPT IS
    REALLY QUITE SIMPLE.  ONE TRICKY ASPECT IS THE CONTROL OF DIFFERENT
    INTERFACE COMPONENTS THAT WILL APPEAR IN THE NEWLY CREATED WINDOW.
    BY DEFAULT *all* THE ELEMENTS WILL BE PRESENT; BUT IF YOU WANT TO
    TURN ALL OF THEM OFF, IT SUFFICES TO SPECIFY ONE CHARACTERISTIC IN
    THE NEGATIVE (no).
    
  • eg:

    <html>
    <head>
    <script language=javascript>
          window.open("/act/97/kpts/kpts.php3","applet",status=no,width=250,height=450")
    </head>
    </script>
    </html>


    Java

  • The source for the 1000 Points of Light applet
  • The completed applet in action. (IE 4 users may need this version which lacks the Javascript popup feature, due to a 'bug' in IE's implementation of Javascript.)
    1991 -- President Bush praises the New World Order in a State of Union Message: "What is at stake is more than one small country, it is a big idea -- a new world order...to achieve the universal aspirations of mankind...based on shared principles and the rule of law....The illumination of a thousand points of light....The winds of change are with us now."