[mapguide-users] RE: Hyperlink in tool tip
GIS4U
johnniegis at gmail.com
Mon Apr 16 13:54:58 EDT 2012
Hi Darwin,
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.
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.
Hope that helps,
Jonathon
On Mon, Apr 16, 2012 at 8:20 AM, elliott17 <elliottd at ae.ca> wrote:
> Jonathon,****
>
> ** **
>
> 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.****
>
> ** **
>
> Can you provide a bit more detail on what you have done in the past.
> Thanks.****
>
> ** **
>
> function HideHyperlinkTip()****
>
> {****
>
> tip = document.getElementById("hlTip");****
>
> if(tip != null) ****
>
> {****
>
> if (IsMouseInsideHyperlink())****
>
> {****
>
> return;****
>
> }****
>
> tip.style.visibility = "hidden";****
>
> }****
>
> }****
>
> ** **
>
> *From:* Jonathon McIntyre-2 [via OSGeo.org] [mailto:[hidden email]<http://user/SendEmail.jtp?type=node&node=4886969&i=0>]
>
> *Sent:* Wednesday, April 11, 2012 6:08 PM
> *To:* Darwin Elliott
> *Subject:* Re: Hyperlink in tool tip****
>
> ** **
>
> Hi Darwin,****
>
> I believe you will need to edit the 'ajaxmappane.templ' file.****
>
> ****
>
> In there are some functions: ****
>
> 1. DisplayHyperlinkTip(x,y)****
>
> 2. HideHyperlinkTip()
>
> I believe you'll need to deal with the Null case for the
> document.getElementById call.****
>
> ****
>
> I have done that in the past with success.****
>
> ****
>
> Regards,****
>
> Jonathon****
>
> ****
>
> On Wed, Apr 11, 2012 at 2:49 PM, elliott17 <[hidden email]<http://user/SendEmail.jtp?type=node&node=4839066&i=0>>
> wrote:****
>
> MGOS 2.2 Windows Server 2007 Ajax site
>
> I have hyperlinks on my tool tips that open various files (pdf's or image
> files). Some of the objects do not have a file associated with them. Is
> there a way of having the tool tip "CTRL + click to open link ()" to not
> show up if there is no attachment to open?
>
> Thanks.
>
> --
> View this message in context: click here.
> NAML<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>
> ****
>
>
> ------------------------------
> View this message in context: RE: Hyperlink in tool tip<http://osgeo-org.1560.n6.nabble.com/Hyperlink-in-tool-tip-tp4837209p4886969.html>
>
> Sent from the MapGuide Users mailing list archive<http://osgeo-org.1560.n6.nabble.com/MapGuide-Users-f4182607.html>at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20120416/af2c3caa/attachment.html
More information about the mapguide-users
mailing list