Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
Reference
Richard Bird. Introduction to Functional Programming using Haskell (2nd edition). Prentice Hall, 1998.
David Chappel. Understanding ActiveX and OLE. Microsoft Press, 1996.
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.
Scott Isaacs. Inside Dynamic HTML. Microsoft Press, 1997.
Simon L. Peyton Jones and Philip Wadler. Imperative functional programming. In POPL 20, pages 71–84, 1993.
Simon Peyton Jones, Erik Meijer, and Daan Leijen. Scripting COM components from Haskell. In Proceedings of ICSR5, 1998.
SL Peyton Jones and J Launchbury. State in Haskell. Lisp and Symbolic Computation, 8(4):293–341, 1995.
Håkon Wium Lie and Bert Bos, editors. Cascading Style Sheets. Addison-Wesley, 1997.
John Matthews, John Launchbury, and Byron Cook. Microprocessor Specification in Hawk. In International Conference on Computer Languages, 1998.
Erik Meijer. Server-side Scripting in Haskell. Journal of Functional Programming, Accepted for publication.
Microsoft Press. Automation Programmers Reference, 1997.
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.
Philip Wadler. Monads for functional programming. In J. Jeuring and E. Meijer, editors, Advanced Functional Programming, volume 925 of LNCS. Springer Verlag, 1995.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Meijer, E., Leijen, D., Hook, J. (1998). Client-Side Web Scripting with HaskellScript. In: Gupta, G. (eds) Practical Aspects of Declarative Languages. PADL 1999. Lecture Notes in Computer Science, vol 1551. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-49201-1_14
Download citation
DOI: https://doi.org/10.1007/3-540-49201-1_14
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-65527-5
Online ISBN: 978-3-540-49201-6
eBook Packages: Springer Book Archive