1CGI.imageHandler(3kaya) Kaya module reference CGI.imageHandler(3kaya)
2
3
4
6 CGI::imageHandler - Embed an image.
7
9 HTML imageHandler( Void(a) fn, a dat, String alt, Int width=-1, Int
10 height=-1, String attribs="" )
11
13 fn The image generating function
14
15 dat A parameter for the image generating function
16
17 alt The alternative text for the image
18
19 width The width of the image in pixels (optional)
20
21 height The height of the image in pixels (optional, but must be speciā
22 fied if width is specified)
23
24 attribs Additional image attributes (e.g. "title='Graph 1' id='gr1'" )
25 (this value is not filtered in any way, and so user-supplied data
26 should not be used here).
27
29 Return the HTML to add an image to a page, where the image is generated
30 by one of the functions in the CGI application.
31
33 Kaya standard library by Edwin Brady, Chris Morris and others
34 (kaya@kayalang.org). For further information see http://kayalang.org/
35
37 The Kaya standard library is free software; you can redistribute it
38 and/or modify it under the terms of the GNU Lesser General Public
39 License (version 2.1 or any later version) as published by the Free
40 Software Foundation.
41
43 Image(3kaya)
44
45
46
47Kaya December 2010 CGI.imageHandler(3kaya)