<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Jacob, thank for your reply. </FONT></DIV>
<DIV><FONT face=Arial size=2>I think your method generates hyperlinks after
post-processing of query result. But I wonder if it is possible to return
hyperlinks to a uer directly when he/she clicks on the map. I wonder it is
possible?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Xiaopeng</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Jacob.Delfos@maunsell.com
href="mailto:Jacob.Delfos@maunsell.com">Delfos, Jacob</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=xpxiong@PURDUE.EDU
href="mailto:xpxiong@PURDUE.EDU">Xiaopeng Xiong</A> ; <A
title=MAPSERVER-USERS@LISTS.UMN.EDU
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, October 10, 2006 12:11
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [UMN_MAPSERVER-USERS] Help:
generating a hyperlink in query result</DIV>
<DIV><BR></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>Hi Xiaopeng,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>If the attribute value is simply passed into the HTML,
then it's simply a matter of putting in the right HTML
code:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2><a href="<A
href="http://someWebsite/myDir/1.img">http://someWebsite/myDir/1.img</A>"
target=#>Click for 1.img</a> (the target=# makes it open in a
new window)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>I normally generate a directory listing, and paste it
into a spreadsheet (e.g. excel / openOffice CALC), and split up the parts of
the link, then concatenate them. For example, imagine a row in a
spreadsheet:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 1: <a
href="http://someWebsite/mydir/</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 2:
1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 3: ".img
target=#></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 4: click for image
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 5:
1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 6:
</a></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>column 7: =concatenate(column1,
column2, column3, column4, column6)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>Only column 2 and 5 will change (can use autonumber). All
other columns will hold the same value, and can be copied
across.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>Hope this makes sense.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Xiaopeng
Xiong<BR><B>Sent:</B> 10 October 2006 11:42<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Help:
generating a hyperlink in query result<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial>I have one index on raster images and it can be
displayed and queried through Mapserver.</FONT></DIV>
<DIV><FONT face=Arial>I wonder whether it would be possible to generate a
hyperlink in query result.</FONT></DIV>
<DIV><FONT face=Arial>The hyperlink will be generated based on one attribute
in the index. </FONT></DIV>
<DIV><FONT face=Arial>For example, if the attribute value is
"/home/myDir/1.img", the hyperlink will direct user to <A
href="http://SomeWebsite/myDir/1.img">http://SomeWebsite/myDir/1.img</A>".</FONT></DIV>
<DIV><FONT face=Arial>I appreciate any suggestions or ideas.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thank you</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Best regards,</FONT></DIV>
<DIV><FONT
face=Arial>Xiaopeng</FONT></DIV></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>