View previous topic :: View next topic |
Author |
Message |
G-Man -
Joined: 08 Aug 2003 Posts: 4
|
Posted: Fri Aug 08, 2003 6:09 am Post subject: Client side image maps |
|
|
Hi There! LOVE your web server. I have tried a few too! I have a client-side image map (made using MapThis!) that does not properly translate the areas into the corresponding HTML page. Does Abyss support such pages? As soon as I switch back to IIS (!) they work again, and in Apache I had to set the conf file to spport them (can't remember as I type, what parameter I changed).
Hoping somone can help me!
Garth :P |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Aug 08, 2003 12:01 pm Post subject: Re: Client side image maps |
|
|
We did the test and all worked fine.
You should use the CSIM format to save the image-map (Client side and not server side). With this format, the server has nothing to do and all is handled by the browser. Please refer to the Help file of MapThis for more information about how to slightly modify you HTML pages to include a CSIM map into it.
As a proof, here is a simple HTML file:
Code: |
<HTML>
<BODY>
<IMG SRC="abyssbnr.gif">
<BODY>
</HTML>
|
we created a CSIM map for abyssbnr.gif using MapThis and included it into the simple HTML file:
Code: |
<HTML>
<BODY>
<IMG SRC="abyssbnr.gif" USEMAP="#test">
<MAP NAME="test">
<!-- #$-:Image Map file created by Map THIS! -->
<!-- #$-:Map THIS! free image map editor by Todd C. Wilson -->
<!-- #$-:Please do not edit lines starting with "#$" -->
<!-- #$VERSION:1.30 -->
<!-- #$AUTHOR:support -->
<!-- #$DATE:Fri Aug 08 11:40:08 2003 -->
<!-- #$PATH:D:\My Documents\ -->
<!-- #$GIF:abyssbnr.gif -->
<AREA SHAPE=RECT COORDS="43,3,85,20" HREF="hello.html">
<AREA SHAPE=default HREF="index.html">
</MAP>
<BODY>
</HTML>
|
Notice that the only modification in the HTML code we had to do manually is in the IMG element:
<IMG SRC="abyssbnr.gif" USEMAP="#test">
The rest of the code is automatically added by MapThis. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
G-Man -
Joined: 08 Aug 2003 Posts: 4
|
Posted: Fri Aug 08, 2003 8:30 pm Post subject: |
|
|
Before anything, I must thank you for your prompt (and DETAILED) reply! Extremely appreciated!
To give you an exact appreciation for what I am doing, an example page with image map is here:
http://24.86.129.160/Servers/WIN2KFS1/win2kfs1.htm
The HTML page sees the image map "tied" to the image like so (clipped from the code)
<a href="win2kfs1.map" name="ImageMap"><IMG alt="Please choose Category!" isMap src="WIN2KFS1.gif" width="491" height="405"></a></P>
... which is essentially the same as typing:
http://24.86.129.160/Servers/WIN2KFS1/win2kfs1.map
and the map file looks like so:
#$MTIMFH
#$-:Image Map file created by Map THIS!
#$-:Map THIS! free image map editor by Todd C. Wilson
#$-:Please do not edit lines starting with "#$"
#$VERSION:1.30
#$TITLE:WIN2KFS1
#$AUTHOR:WTCS
#$DATE:Wed Nov 13 22:14:27 2002
#$PATH:D:\NET-SONAR\WEB\images\
#$GIF:WIN2KFS1.gif
#$FORMAT:ncsa
#$EOH
default win2kfs1.htm#imagemap
rect server.htm 19,14 129,32
rect processor.htm 20,49 132,68
rect pdisk.htm 21,84 132,102
rect not_avail.htm 192,13 304,31
rect system.htm 355,15 466,33
rect processes.htm 355,50 466,68
rect memory.htm 356,84 466,102
rect http-ftp.htm 356,118 467,136
rect websvc.htm 357,152 467,170
rect exch_mta.htm 356,189 467,206
rect exch_local.htm 357,221 469,239
rect ldisk.htm 21,118 132,137
rect isa_fw.htm 21,152 132,170
rect isa_wp.htm 21,188 132,206
rect db_stats.htm 20,221 130,239
rect udp_stats.htm 357,354 468,370
rect network.htm 357,283 468,301
rect tcp_stats.htm 356,318 467,336
rect ping_probe.htm 19,352 130,370
When a region is clicked, Abyss tries to serve up the .MAP file (manifesting itself as a windows offering the user a choice to Open, Save or Cancel), and does not return the corresponding HTML tied to the rectangle in the map file itself.
So I appologize. It would seems to me that I did NOT use a CSIM, or at
least not in the format that YOU did. That likely explains why when I replace IIS with Abyss (which is the intention here) that it no longer works.
Any thoughts why IIS would work (MIME settings)? Please let me know if I am asking for too much!
Thanks again!
Garth |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Aug 10, 2003 3:46 pm Post subject: |
|
|
The .map you're using means that you generated a server-side map and not a client side map. There is a big difference since with server-side maps, it is the server that receives the coordinates of the click and redirects the the correct URL according to the map file.
Abyss does not support server-side maps because HTML 3.0 and later support a better mechanism (client side maps) that uses the client browser to do the job (and does not overload the server with unecessary requests).
We recommend re-saving your project in MapThis using CSIM. Not only this works with all web servers but this is also better for speed and efficiency. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
G-Man -
Joined: 08 Aug 2003 Posts: 4
|
Posted: Tue Aug 26, 2003 4:01 pm Post subject: |
|
|
Thanks again. Moving to client-side image maps is a good idea!
I will make those changes (probably tonight!). I really appreciate your help, and for the time you took to test and present a resolution for my small problem.
Garth |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Aug 26, 2003 7:11 pm Post subject: |
|
|
You're welcome. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue Aug 26, 2003 8:08 pm Post subject: |
|
|
CuteMap is a good program for making image maps , just check out my new offspring fan site and see for your self
http://offspring.chitmusic.com (Site not yet released)
Hosted by my friends domain address
http://chitmusic.com 8) _________________ This web server is the best ! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|