WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.CGI.EventHandlers

Synopsis

Documentation

onAbort :: Monad m => String -> WithHTML x m ()Source

The user aborts the loading of an image (for example by clicking a link or clicking the Stop button).

onBlur :: Monad m => String -> WithHTML x m ()Source

A form element loses focus or when a window or frame loses focus.

onChange :: Monad m => String -> WithHTML x m ()Source

A select, text, or textarea field loses focus and its value has been modified.

onClick :: Monad m => String -> WithHTML x m ()Source

An object on a form is clicked.

onDblClick :: Monad m => String -> WithHTML x m ()Source

The user double-clicks a form element or a link.

onDragDrop :: Monad m => String -> WithHTML x m ()Source

The user drops an object onto the browser window, such as dropping a file on the browser window.

onError :: Monad m => String -> WithHTML x m ()Source

The loading of a document or image causes an error.

onFocus :: Monad m => String -> WithHTML x m ()Source

A window, frame, or frameset receives focus or when a form element receives input focus.

onKeyDown :: Monad m => String -> WithHTML x m ()Source

The user depresses a key.

onKeyPress :: Monad m => String -> WithHTML x m ()Source

The user presses or holds down a key.

onKeyUp :: Monad m => String -> WithHTML x m ()Source

The user releases a key.

onLoad :: Monad m => String -> WithHTML x m ()Source

The browser finishes loading a window or all of the frames within a FRAMESET tag.

onMouseDown :: Monad m => String -> WithHTML x m ()Source

The user depresses a mouse button.

onMouseMove :: Monad m => String -> WithHTML x m ()Source

The user moves the cursor.

onMouseOut :: Monad m => String -> WithHTML x m ()Source

The cursor leaves an area (client-side image map) or link from inside that area or link.

onMouseOver :: Monad m => String -> WithHTML x m ()Source

The cursor moves over an object or area from outside that object or area.

onMouseUp :: Monad m => String -> WithHTML x m ()Source

The user releases a mouse button.

onMove :: Monad m => String -> WithHTML x m ()Source

The user or script moves a window or frame.

onReset :: Monad m => String -> WithHTML x m ()Source

The user resets a form (clicks a Reset button).

onResize :: Monad m => String -> WithHTML x m ()Source

The user or script resizes a window or frame.

onSelect :: Monad m => String -> WithHTML x m ()Source

The user selects some of the text within a text or textarea field.

onSubmit :: Monad m => String -> WithHTML x m ()Source

The user submits a form. Event handler must return true to continue submission. Returning false concels submission.

onUnload :: Monad m => String -> WithHTML x m ()Source

The user exits a document.

toTarget :: Monad m => String -> WithHTML x m ()Source

Redirect result of form submission to specific target. Attach to submission button.