<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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="http://someWebsite/myDir/1.img"
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></BODY></HTML>