Autodesk MapGuide Enterprise
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
"URL activated for feature" link
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
453 Views, 3 Replies
11-05-2007 11:22 AM
I'm trying to link some features in the map using the "URL activated for feature" in the layer editor. (MGE08, IIS)
if I put www.google.com, then clicking on the map links to http://xxx/mapguide2008/mapviewerajax/www.google.c om
How can I remove the first part of the url? Why does it include it? Also, where can I change the setting for how I want the url displayed (new window, new tab, same window etc).
thanks,
-Mike
if I put www.google.com, then clicking on the map links to http://xxx/mapguide2008/mapviewerajax/www.google.c
How can I remove the first part of the url? Why does it include it? Also, where can I change the setting for how I want the url displayed (new window, new tab, same window etc).
thanks,
-Mike
*Jason Birch
Re: "URL activated for feature" link
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-06-2007 12:09 AM in reply to:
mistermike
mistermike wrote:
> if I put www.google.com, then clicking on the map links to http://xxx/mapguide2008/mapviewerajax/www.google.c om
www.google.com is not a url
Ok, it might be, but only in the context
that MapGuide (or more likely the web browser) is interpreting it: as a
relative url. You would see the same results if you used www.google.com
as the value of the href attribute in an HTML anchor (a) element.
You need to include the http:// part for it to work, and should really
include the trailing slash as well.
Back in the old days, browsers did not allow you to get away with typing
the host name without specifying the protocol... then they clued in and
assisted the users (and marketers) by making the assumption that most
users of web browsers actually want to see a web site.
Jason
> if I put www.google.com, then clicking on the map links to http://xxx/mapguide2008/mapviewerajax/www.google.c
www.google.com is not a url
that MapGuide (or more likely the web browser) is interpreting it: as a
relative url. You would see the same results if you used www.google.com
as the value of the href attribute in an HTML anchor (a) element.
You need to include the http:// part for it to work, and should really
include the trailing slash as well.
Back in the old days, browsers did not allow you to get away with typing
the host name without specifying the protocol... then they clued in and
assisted the users (and marketers) by making the assumption that most
users of web browsers actually want to see a web site.
Jason
Re: "URL activated for feature" link
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-06-2007 09:06 AM in reply to:
mistermike
Thanks Jason, that worked just right.
Re: "URL activated for feature" link
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-09-2010 02:34 AM in reply to:
mistermike
hi, I am using Mapguide Studio 2010. I want to add a link on my map on a specific spot. How Is it possible to add a button/text and assign a url to it?
Thanks in advance
P.S. the link is intendet to be external (not on the same server)
