<!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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>&lt;a href="http://someWebsite/myDir/1.img" 
target=#&gt;Click for 1.img&lt;/a&gt;&nbsp; (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>&nbsp;</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>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 3:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ".img 
target=#&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 4:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; click for image 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 5:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 6:&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/a&gt;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=670570404-10102006><FONT face=Arial 
color=#0000ff size=2>column 7:&nbsp;&nbsp;&nbsp;&nbsp; =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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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&nbsp;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>&nbsp;</DIV>
  <DIV><FONT face=Arial>Thank you</FONT></DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial>Best regards,</FONT></DIV>
  <DIV><FONT 
face=Arial>Xiaopeng</FONT></DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>