<div>Hi Darwin,</div><div>I no longer have access to that code but it really comes down to knowing exactly what is coming through in the URL. NULL vs "" vs "Value" and then catching that case for empty URLs. You then have to follow the URL through the functions (javascript alerts help) and put the appropriate IF THEN ELSE in there.</div>
<div> </div><div>This may also involve working with the SQL. For example, putting: 'No Hyperlinks available for this record' shows the user there is no point clicking and may resolve your problem.</div><div> </div>
<div>Hope that helps,</div><div>Jonathon<br><br></div><div class="gmail_quote">On Mon, Apr 16, 2012 at 8:20 AM, elliott17 <span dir="ltr"><<a href="mailto:elliottd@ae.ca">elliottd@ae.ca</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Jonathon,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Within our tables, the URL column has a path to an image or the cell is empty. The Data type is set to character. The tooltip shows 3 or 4 attributes and then the URL column. The tool tip will always show something but the hyperlink URL can be blank.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Can you provide a bit more detail on what you have done in the past. Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">function HideHyperlinkTip()<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">{<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> tip = document.getElementById("hlTip");<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> if(tip != null) <u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> if (IsMouseInsideHyperlink())<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> return;<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> }<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> tip.style.visibility = "hidden";<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"> }<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">}<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif";font-size:10pt" lang="EN-US">From:</span></b><span style="font-family:"Tahoma","sans-serif";font-size:10pt" lang="EN-US"> Jonathon McIntyre-2 [via OSGeo.org] [mailto:<a href="http://user/SendEmail.jtp?type=node&node=4886969&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>] <br>
<b>Sent:</b> Wednesday, April 11, 2012 6:08 PM<br><b>To:</b> Darwin Elliott<br><b>Subject:</b> Re: Hyperlink in tool tip<u></u><u></u></span></p><div class="im"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">
Hi Darwin,<u></u><u></u></p></div><div><p class="MsoNormal">I believe you will need to edit the 'ajaxmappane.templ' file.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
In there are some functions: <u></u><u></u></p></div><div><p class="MsoNormal">1. DisplayHyperlinkTip(x,y)<u></u><u></u></p></div><div><p class="MsoNormal">2. HideHyperlinkTip()<br><br>I believe you'll need to deal with the Null case for the document.getElementById call.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I have done that in the past with success.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
Regards,<u></u><u></u></p></div><div><p class="MsoNormal">Jonathon<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div><div><div class="im"><p class="MsoNormal">On Wed, Apr 11, 2012 at 2:49 PM, elliott17 <<a href="http://user/SendEmail.jtp?type=node&node=4839066&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>> wrote:<u></u><u></u></p>
</div><p class="MsoNormal"><div class="im">MGOS 2.2 Windows Server 2007 Ajax site<br><br>I have hyperlinks on my tool tips that open various files (pdf's or image<br>files). Some of the objects do not have a file associated with them. Is<br>
there a way of having the tool tip "CTRL + click to open link ()" to not<br>show up if there is no attachment to open?<br><br>Thanks.<br><br>--<br></div>View this message in context: <a rel="nofollow" link="external">click here</a>.<br>
<a href="http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" target="_blank" link="external"><span style="font-family:"Times New Roman","serif";font-size:7pt">NAML</span></a> <u></u><u></u><p>
</p></p></div></div>
        
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Hyperlink-in-tool-tip-tp4837209p4886969.html" target="_blank">RE: Hyperlink in tool tip</a><div class="HOEnZb"><div class="h5"><br>
Sent from the <a href="http://osgeo-org.1560.n6.nabble.com/MapGuide-Users-f4182607.html" target="_blank">MapGuide Users mailing list archive</a> at Nabble.com.<br></div></div><br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br>