| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="64ExamplesofImagemaps.html">
|
|
|
8 |
<LINK REL="Next" HREF="66Gettingholdoftheimagemap.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="64ExamplesofImagemaps.html">Previous</A>
|
|
|
26 |
<A HREF="66Gettingholdoftheimagemap.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="6_5">6.5 How does StrokeCSIM() work?</A></H2>
|
|
|
29 |
<P> Knowledge of the exact technical details of the way StrokeCSIM()
|
|
|
30 |
works is probably not needed by many people but for completeness we
|
|
|
31 |
outline those details in this short section.</P>
|
|
|
32 |
<P> The fundamental issue we have to solve is that we must be able to
|
|
|
33 |
call the image script in two modes. When the user includes the image
|
|
|
34 |
script the StrokeCSIM() method should return the HTML page but when the
|
|
|
35 |
image script is later called directly in the image tag it must not
|
|
|
36 |
return an HTML page but rather the actual image.</P>
|
|
|
37 |
<P> The way this is solved is by using one HTTP argument which is passed
|
|
|
38 |
on automatically when we use the image script name in the image-tag.</P>
|
|
|
39 |
<P> If you look at the generated HTML you will see that the argument to
|
|
|
40 |
the src-property of the image tag is not simply the script name but the
|
|
|
41 |
script name with a additional argument.</P>
|
|
|
42 |
<P> In the JpGraph internal code this pre-defined argument is checked
|
|
|
43 |
for and if it exists the image is send back and not the HTML page.</P>
|
|
|
44 |
<P> The name of this argument is defined by a DEFINE() statement in
|
|
|
45 |
JpGraph. The define is _CSIM_DISPLAY.</P>
|
|
|
46 |
<HR NOSHADE>
|
|
|
47 |
<A HREF="toc.html">Contents</A>
|
|
|
48 |
<A HREF="64ExamplesofImagemaps.html">Previous</A>
|
|
|
49 |
<A HREF="66Gettingholdoftheimagemap.html">Next</A>
|
|
|
50 |
</BODY>
|
|
|
51 |
</HTML>
|