Client-Side Web Scripting with HaskellScript
- 315 Downloads
Using client-side scripting it is possible to build interactive web pages that don’t need round-trips to the server for every user-event. The web browser exposes itself to the script via an object model (DOM), which means that scripts can add and remove page content, or change the position and color of elements via their style attributes. We explain the object model as implemented by Microsoft Internet Explorer by means of examples and report on our experiences of using Haskell as a programming language for client-side web scripting using the HaskellScript scripting engine.
KeywordsObject Model Functional Programming Script Language Cascade Style Sheet Document Object Model
Unable to display preview. Download preview PDF.
- Richard Bird. Introduction to Functional Programming using Haskell (2nd edition). Prentice Hall, 1998.Google Scholar
- David Chappel. Understanding ActiveX and OLE. Microsoft Press, 1996.Google Scholar
- J. Petersoneditor et. al. Report on the programming language Haskell version 1.4. http://www.haskell.org/, April 61997.
- Lauren Woodet. al. Document Object Model (DOM) Level 1 Specification. http://www.w3.org/TR/REC-DOM-Level-1, October1998.
- Sigbjorn Finne, Daan Leijen, Erik Meijer, and Simon Peyton Jones. H/Direct: A Binary Foreign Language Interface to Haskell. In Proceedings of ICFP’98, 1998.Google Scholar
- Scott Isaacs. Inside Dynamic HTML. Microsoft Press, 1997.Google Scholar
- Simon L. Peyton Jones and Philip Wadler. Imperative functional programming. In POPL 20, pages 71–84, 1993.Google Scholar
- Simon Peyton Jones, Erik Meijer, and Daan Leijen. Scripting COM components from Haskell. In Proceedings of ICSR5, 1998.Google Scholar
- Håkon Wium Lie and Bert Bos, editors. Cascading Style Sheets. Addison-Wesley, 1997.Google Scholar
- John Matthews, John Launchbury, and Byron Cook. Microprocessor Specification in Hawk. In International Conference on Computer Languages, 1998.Google Scholar
- Erik Meijer. Server-side Scripting in Haskell. Journal of Functional Programming, Accepted for publication.Google Scholar
- Microsoft Press. Automation Programmers Reference, 1997.Google Scholar
- D. Ragget, Arnoud Le Hors, and Ian Jacobs. HTML 4.0 specification. http://www.w3.org/TR/REC-html40, December 1997.
- Philip Wadler. Personal communication.Google Scholar
- Philip Wadler. Monads for functional programming. In J. Jeuring and E. Meijer, editors, Advanced Functional Programming, volume 925 of LNCS. Springer Verlag, 1995.Google Scholar