Javascript in ParenScript Tutorial
Short Description
In this tutorial, we will use the Portable Allegroserve webserver to serve the tutorial web application. We use the ASDF system to load both Allegroserve and ParenScript. I assume you have installed and downloaded Allegroserve and Parenscript, and know how to setup the central registry for ASDF.
Website: common-lisp.net | Filesize: 92kb
No of Page(s): 11
Content
…
The first document we will generate is a simple HTML document, which features a single hyperlink. When clicking the hyperlink, a JavaScript handler opens a popup alert window with the string “Hello world”. To facilitate the development, we will factor out the HTML generation to a separate function, and setup a handler for the url “/tutorial1″, which will generate HTTP headers and call the function TUTORIAL1. At first, our function does nothing.
…
Suppose we now want to have a general greeting function. One way to do this is to add the javascript in a SCRIPT element at the top of the HTML page. This is done using the JS-SCRIPT macro (defined below) which will generate the necessary XML and comment tricks to cleanly embed JavaScript. We will redefine our TUTORIAL1 function and add a few links:…
Get the file Download here
Related Books:Related Searches: script element, html generation, tutorial web, js script, html document
Comments
Leave a Reply